Bug 1641952 [wpt PR 23860] - Fix calculation of before change style for CSS transitio...
commit9a99a6e4bfcbae72223a6fc35ba735d0adf5a65a
authorKevin Ellis <kevers@chromium.org>
Thu, 2 Jul 2020 19:20:47 +0000 (2 19:20 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 3 Jul 2020 09:38:43 +0000 (3 09:38 +0000)
tree36e6e9e4b0849b18be6c28c286505db4c4919409
parent33281223d455041258ebef88e98004fff2322ca8
Bug 1641952 [wpt PR 23860] - Fix calculation of before change style for CSS transitions, a=testonly

Automatic update from web-platform-tests
Fix calculation of before change style for CSS transitions

This patch performs a lazy calculation of the before change style once
it has been determined that a transition is being retargeted. In doing
so, the current position is correctly updated to reflect changes made
via the web-animation API.  The path also addresses a bug in the
calculation of current time, in the case of a paused or play-pending
animation.

Bug: 1082401, 888661, 547609

Change-Id: I4b76879d840b482da8ebf23c1aad41b881fafce8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2220263
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Reviewed-by: Robert Flack <flackr@chromium.org>
Commit-Queue: Kevin Ellis <kevers@chromium.org>
Cr-Commit-Position: refs/heads/master@{#783675}

--

wpt-commits: ebe69e97a1ea77b2eb30d7b40ffef2d67455a805
wpt-pr: 23860
testing/web-platform/tests/css/css-transitions/CSSTransition-currentTime.tentative.html
testing/web-platform/tests/css/css-transitions/CSSTransition-effect.tentative.html
testing/web-platform/tests/css/css-transitions/KeyframeEffect-setKeyframes.tentative.html