Re: [csswg-drafts] [css-transitions-2][css-animations-2] The event order of the cancelled transitions/animations (#11064)

Proposed spec edits:

1. In CSS Transitions level 2, [Animation composite order](https://drafts.csswg.org/css-transitions-2/#animation-composite-order) add some introductory text:

   > When determining the composite order to sort transition events where either or both of the events is a [`transitioncancel`](https://drafts.csswg.org/css-transitions-1/#transitioncancel) event, use the [owning element](https://drafts.csswg.org/css-transitions-2/#owning-element) and [transition generation](https://drafts.csswg.org/css-transitions-2/#transition-generation) that were set immediately prior to cancelling the transition.

2. In CSS Animations level 2, [Animation composite order](https://drafts.csswg.org/css-animations-2/#animation-composite-order) add:

   > When determining the composite order in order to for sort animation events where either or both of the events is an [`animationcancel`](https://drafts.csswg.org/css-animations-1/#eventdef-globaleventhandlers-animationcancel) event, treat the CSS Animation(s) for which the event was generated as having an [owning element](https://drafts.csswg.org/css-animations-2/#owning-element) corresponding to the owning element in use at the point where 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.

That last sentence in particular probably needs work but that's the gist anyway.

-- 
GitHub Notification of comment by birtles
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11064#issuecomment-2445865444 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 30 October 2024 05:08:41 UTC