Update the algorithm to sort animation cancel event
Categories
(Core :: CSS Transitions and Animations, defect)
Tracking
()
People
(Reporter: boris, Assigned: boris, NeedInfo)
References
()
Details
Attachments
(2 files)
Per the discussion in Bug 1923208 and the spec issue (https://github.com/w3c/csswg-drafts/issues/11064), Brian updated the spec (https://github.com/w3c/csswg-drafts/pull/11176), so now we follow the new rules to sort animation events (https://drafts.csswg.org/css-animations-2/#animation-composite-order):
When determining the composite order in order to sort animation events where either or both of the events is an animationcancel event, treat the CSS Animation(s) for which the animationcancel event was generated as having an owning element corresponding to the owning element in use at the moment when the CSS Animation was cancelled. Furthermore, use the position of the animation in the animation-name property in effect at the time when the CSS Animation was cancelled sorting such that positions of cancelled animations sort before positions of animations that have not been cancelled.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
Just like what we do for CSSTransition, we use the similar way to handle
CSSAnimation with the same schedule time.
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
| Assignee | ||
Comment 3•1 year ago
|
||
Add some tests for animation events sorting, per the spec issue:
https://github.com/w3c/csswg-drafts/issues/11064#issuecomment-2445782077,
and follow the spec:
https://drafts.csswg.org/css-animations-2/#animation-composite-order
| Assignee | ||
Updated•1 year ago
|
Comment 6•1 year ago
|
||
| bugherder | ||
Comment 8•1 year ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:boris, maybe it's time to close this bug?
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 9•1 year ago
|
||
No need this keyword, and I have to try to push the 2nd patch again.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•8 months ago
|
Description
•