Skip to content

Commit 582de32

Browse files
committed
[css-animations-2] Define order for sorting animationcancel events
See #11064.
1 parent d4315ff commit 582de32

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

css-animations-2/Overview.bs

+12
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,18 @@ last) as follows:
234234
computed value of the 'animation-name' property of the (common) <a>owning
235235
element</a>.
236236
237+
When determining the composite order in order
238+
to sort [[#events|animation events]]
239+
where either or both of the events is an {{animationcancel}} event,
240+
treat the CSS Animation(s) for which the {{animationcancel}} event was generated
241+
as having an [=owning element=] corresponding to
242+
the owning element in use at the moment when the CSS Animation was cancelled.
243+
Furthermore,
244+
use the position of the animation in the 'animation-name' property
245+
in effect at the time when the CSS Animation was cancelled
246+
sorting such that positions of cancelled animations sort
247+
before positions of animations that have not been cancelled.
248+
237249
The composite order of CSS Animations <em>without</em> an <a>owning element</a>
238250
is based on their position in the <a>global animation list</a>.
239251

0 commit comments

Comments
 (0)