Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[scroll-animations] WPT test scroll-animations/scroll-timelines/scrol…
…l-animation-effect-phases.tentative.html has failures https://bugs.webkit.org/show_bug.cgi?id=284545 rdar://problem/141356963 Reviewed by NOBODY (OOPS!). The technique used by this test to determine the phase [0] in which an animation is, which is not explicitly exposed via the Web Animations API, was not up-to-date with the fact that progress-based animations remain active at the 100% boundary. So we update the supporting `assert_phase()` function to deal with such animations and pass the previously failing assertion. But going further into this test, we would hit a debug assertion when trying to compute the unconstrained current time as we get to the end of the procedure to set the timeline as we move from the scroll timeline to the document timeline. I filed a spec issue [1] to deal with this and came up with a temporary fix to restore the timing incompatibility and pass this test. [0] https://drafts.csswg.org/web-animations-1/#animation-effect-phases-and-states [1] w3c/csswg-drafts#11761 * LayoutTests/imported/w3c/web-platform-tests/scroll-animations/scroll-timelines/scroll-animation-effect-phases.tentative-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/web-animations/testcommon.js: (assert_phase): * Source/WebCore/animation/WebAnimation.cpp: (WebCore::WebAnimation::setTimeline):
- Loading branch information