From abc04187103b999c34f27fe296dfe957dcbd1779 Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Mon, 23 Dec 2024 13:39:34 -0500 Subject: [PATCH] LibWeb/DOM: Convert elapsedTime to seconds when firing AnimationEvents This makes all three subtests from this test to pass: - css/css-animations/animationevent-types.html --- Libraries/LibWeb/DOM/Document.cpp | 6 +- .../css-animations/animationevent-types.txt | 8 ++ .../css-animations/animationevent-types.html | 89 +++++++++++++++++++ 3 files changed, 101 insertions(+), 2 deletions(-) create mode 100644 Tests/LibWeb/Text/expected/wpt-import/css/css-animations/animationevent-types.txt create mode 100644 Tests/LibWeb/Text/input/wpt-import/css/css-animations/animationevent-types.html diff --git a/Libraries/LibWeb/DOM/Document.cpp b/Libraries/LibWeb/DOM/Document.cpp index 28976e33349..352cdb8150f 100644 --- a/Libraries/LibWeb/DOM/Document.cpp +++ b/Libraries/LibWeb/DOM/Document.cpp @@ -2362,7 +2362,9 @@ void Document::dispatch_events_for_animation_if_necessary(GC::Refrealm(), @@ -2370,7 +2372,7 @@ void Document::dispatch_events_for_animation_if_necessary(GC::Ref + + +CSS Animations Test: AnimationEvnt types - animationstart, animationend,animationiteration + + + + + +
Filler Text
+
+ +