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)

enhancement

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: 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.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: