Update animation.reverse() and the setter of playbackRate to match the spec
Categories
(Core :: DOM: Animation, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox157 | --- | fixed |
People
(Reporter: boris, Assigned: boris)
References
(Blocks 2 open bugs, )
Details
(Keywords: dev-doc-complete, Whiteboard: [scrollanimation:m2])
Attachments
(2 files)
This bug is for these tests:
- scroll-timelines/setting-playback-rate.html
- scroll-timelines/finish-animation.html
- scroll-timelines/reverse-animation.html
The above tests manipulate the playback rate and check the current time (and start time). If the active duration is incorrect, we may have incorrect end time so the timing normalization or any calculation may be wrong. We may have other issues to make these tests pass but at least we can start to check the calculation of active duration with the playback rate.
| Assignee | ||
Updated•3 months ago
|
| Assignee | ||
Updated•3 months ago
|
| Assignee | ||
Updated•3 months ago
|
| Assignee | ||
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Note that reverse-animation.html will be passed once we follow the spec change: https://github.com/w3c/csswg-drafts/issues/14173
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 2•1 month ago
|
||
We missed the implementation for finite timelines. The spec udpate was added
into web-animations-1 [1] directly, instead of web-animations-2.
[1] https://drafts.csswg.org/web-animations-1/#set-the-playback-rate
| Assignee | ||
Comment 3•1 month ago
|
||
Otherwise, calling reverse() is no-op and our behavior may mismatch
other browers because the start time and current time is not correct
after calling reverse() with zero playback rate. This also matches the spec.
Also, we intentionally preserve zero playback rate (instead of setting to
-0); otherwise, we may get new failures in
web-animations/timing-model/animations/reversing-an-animation.html and
scroll-animations/scroll-timelines/reverse-animation.html.
In addition, need to update the test of animation mutation observers
because we update the animaiton after we call reverse() for zero
playback rate.
| Assignee | ||
Updated•1 month ago
|
Comment 5•1 month ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/04b05b83e804
https://hg.mozilla.org/mozilla-central/rev/4fbf969ba677
Updated•23 days ago
|
Comment 6•6 days ago
|
||
Release notes: https://github.com/mdn/content/pull/45884
Description
•