Closed
Bug 1495647
Opened 6 years ago
Closed 6 years ago
Animation.playState should incorporate the pending playback rate
Categories
(Core :: DOM: Animation, enhancement, P3)
Core
DOM: Animation
Tracking
()
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: birtles, Assigned: birtles)
References
()
Details
Attachments
(2 files)
I believe this is a spec bug since, for a pending animation, playState should report the playState we are about to enter once we finish pending.
However, for the following code:
const animation = div.animate({}, 1000);
animation.updatePlaybackRate(-1);
animation.play();
We will report 'finished' but after animation.ready resolves we will report 'running'.
As a result of this, when we go to fetch animations for the compositor will not send the animation because Animation::IsPlaying()[1] will return false.
[1] https://searchfox.org/mozilla-central/rev/819cd31a93fd50b7167979607371878c4d6f18e8/dom/animation/EffectCompositor.cpp#118-120
Assignee | ||
Comment 1•6 years ago
|
||
Spec issue:
https://github.com/w3c/csswg-drafts/issues/3190
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
This corresponds to the following change to the Web Animations spec:
https://github.com/w3c/csswg-drafts/pull/3191/commits/abdebabf7f4af1a77376eadffdf8bc0ff46fc551
Depends on D7573
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → bbirtles
Status: NEW → ASSIGNED
Pushed by bbirtles@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/15130d3c1c01
Tidy up tests in play-states.html a little; r=hiro
https://hg.mozilla.org/integration/autoland/rev/eb6c2a002b78
Use the effective playback rate when calculating the playState; r=hiro
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/13331 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/15130d3c1c01
https://hg.mozilla.org/mozilla-central/rev/eb6c2a002b78
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Upstream PR merged
Can't merge web-platform-tests PR due to failing upstream checks:
Github PR https://github.com/web-platform-tests/wpt/pull/13331
* Taskcluster (pull_request) (https://tools.taskcluster.net/task-group-inspector/#/RhEVlySaTViRJFRkMadK2w)
You need to log in
before you can comment on or make changes to this bug.
Description
•