Bug 1611814 [wpt PR 21438] - Implement commitStyles for web animations., a=testonly
commit9613c6f0c18116d12a7e140c9d6d5e039131b002
authorKevin Ellis <kevers@chromium.org>
Wed, 29 Jan 2020 08:07:49 +0000 (29 08:07 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 31 Jan 2020 20:40:34 +0000 (31 20:40 +0000)
tree804279e3b8405271e658aa71fdb6fb56a86e999d
parentd7b46029f9c5e01938614db70b1c97c9e7e42a61
Bug 1611814 [wpt PR 21438] - Implement commitStyles for web animations., a=testonly

Automatic update from web-platform-tests
Implement commitStyles for web animations.

CommitStyles provides a convenient way to update the style of an
element, avoiding the need to keep finished animations persistent
in order to stack effects.

A typical use case is:

const anim = elem.animate(keyframes, {..., fill: 'forward'});
anim.finished.then(() => {
  anim.commitStyles();
  anim.cancel();
});

Spec:
https://drafts.csswg.org/web-animations-1/#dom-animation-commitstyles

Intent:
https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/H5sz_dg6fKc/1X7K7U4XCgAJ

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

--

wpt-commits: 44e7759ce47e1b16994aac592202939db85e2750
wpt-pr: 21438
testing/web-platform/tests/web-animations/interfaces/Animation/commitStyles.html