Implement deferred `UpdateAnimationsTasks::CSSAnimations` task on animation target elements on scroll/view timelines change
Categories
(Core :: Layout, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox154 | --- | fixed |
People
(Reporter: dshin, Assigned: dshin)
References
(Blocks 1 open bug)
Details
(Whiteboard: [scrollanimation:mvp])
Attachments
(2 files, 2 external files)
... Also may be the case for timeline scope updates.
Currently updates take immediate effect as seen here, where we find all animations referring to changing timelines and update them right away. This goes against recent CSSWG resolutions (1, 2) and are causing behavioural differences.
Examining other browsers' behaviour and fitting them to our infrastructure, it seems that scroll/view/scope changes to some elements should collapse down to a single call to update the target element of the animation here.
Fixing this may have further knock-on effects to WPTs, in relation to bug 2024012.
| Assignee | ||
Comment 1•5 months ago
|
||
- With the
gCSline commented, Blink and WebKit have the time-based animation play from where the scroll animation left off - With it uncommented, Blink starts the timed animation from 0%, where WebKit seems to.. Not apply any animation effect?
- My WIP change has us always start the timed animation from 0%
- Commenting
scroller.classList.remove('st');makes all browsers have the time-based animation play from where the scroll animation left off, regardless of gCS being commented out
| Assignee | ||
Comment 2•5 months ago
|
||
Without timeline-scope, things are slightly different:
- Commenting the
gCSline out makes all browsers have the time-based animation play from where the scroll animation left off - Uncommenting the
gCSline, current WIP changes behave identically as above, but WebKit and Blink freezes the animation where the scroll timeline left it - Commenting
scroller.classList.remove('st');makes all browsers have the time-based animation play from where the scroll animation left off, regardless of gCS being commented out
... I think once all browsers start following the spec (Where the lookup failure for unscoped timeline names don't result in null timelines), this case should become equivalent to one with timeline-scope.
| Assignee | ||
Updated•5 months ago
|
Updated•5 months ago
|
| Assignee | ||
Comment 3•4 months ago
|
||
| Assignee | ||
Comment 4•4 months ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d06f64483eb5
https://hg.mozilla.org/mozilla-central/rev/f10a3a71c694
https://hg.mozilla.org/mozilla-central/rev/7a894f07933f
Updated•4 months ago
|
Description
•