[Webkit-unassigned] [Bug 184580] [Web Animations] Fix animations/stop-animation-on-suspend.html

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 10 02:38:36 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=184580

Antoine Quint <graouts at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |graouts at webkit.org

--- Comment #4 from Antoine Quint <graouts at webkit.org> ---
I believe the expectations of this test to be incorrect. The test animates a transform from 0 to 400px across 400ms with a linear timing function. The test suspends animations from 100ms to 300ms with timers, and polls animations at 200ms and 400ms. At 200ms, it expects a value of 100px, which is correct since the animation is suspended and so the value at 100ms (when it was suspended) is expected.

However, the test expected the value at 400ms to be 200px, which leads me to think this test assumes that animations, when resumed, account for the time suspended and subtracts it from the page time. This is incorrect: when animations resume, they resume at the current time, no matter how long they were suspended. So the expected value should be 400px.

I will file a patch with this change in expectation.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200210/ffde74bd/attachment-0001.htm>


More information about the webkit-unassigned mailing list