forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[scroll-animations] setting a new progress-based timeline on an anima…
…tion should reset its `ready` promise https://bugs.webkit.org/show_bug.cgi?id=285667 rdar://142608438 Reviewed by Anne van Kesteren. We were failing some scroll-animations WPT tests related to switching timelines dynamically because these tests relied on the animation's `ready` promise being reset upon setting a new progress-based timeline. While the spec doesn't currently state that this should occur, it makes sense that it would if the animation was not already pending since a new start time will be computed in the next animation frame. A spec issue was filed at w3c/csswg-drafts#11465 to clear this up. So when we schedule a pending play task, we also reset the `ready` promise in case the animation was not already in the pending state. * LayoutTests/imported/w3c/web-platform-tests/scroll-animations/css/animation-timeline-ignored.tentative-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/scroll-animations/scroll-timelines/setting-timeline.tentative-expected.txt: * LayoutTests/platform/glib/TestExpectations: * LayoutTests/platform/win/TestExpectations: * Source/WebCore/animation/WebAnimation.cpp: (WebCore::WebAnimation::setTimeline): Canonical link: https://commits.webkit.org/288655@main
- Loading branch information
Showing
5 changed files
with
16 additions
and
7 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
...eb-platform-tests/scroll-animations/css/animation-timeline-ignored.tentative-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
|
||
FAIL Changing animation-timeline changes the timeline (sanity check) assert_equals: expected "140px" but got "0px" | ||
FAIL animation-timeline ignored after setting timeline with JS (ScrollTimeline from JS) assert_equals: expected "180px" but got "0px" | ||
FAIL animation-timeline ignored after setting timeline with JS (ScrollTimeline from CSS) assert_equals: expected "140px" but got "0px" | ||
PASS Changing animation-timeline changes the timeline (sanity check) | ||
PASS animation-timeline ignored after setting timeline with JS (ScrollTimeline from JS) | ||
PASS animation-timeline ignored after setting timeline with JS (ScrollTimeline from CSS) | ||
PASS animation-timeline ignored after setting timeline with JS (document timeline) | ||
FAIL animation-timeline ignored after setting timeline with JS (null) assert_equals: expected "120px" but got "0px" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters