Skip to content

Commit

Permalink
[css-animations-2] clarify that CSS animation events are dispatched a…
Browse files Browse the repository at this point in the history
…t the owning element
  • Loading branch information
birtles committed Jul 15, 2022
1 parent 4f811ce commit c177038
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions css-animations-2/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ Editor: Brian Birtles, Mozilla https://www.mozilla.org/, bbirtles@mozilla.com, w
Abstract: This CSS module describes a way for authors to animate the values of CSS properties over time, using keyframes. The behavior of these keyframe animations can be controlled by specifying their duration, number of repeats, and repeating behavior.
Ignored Vars: auto-rewind
</pre>
<pre class=anchors>
urlPrefix: https://dom.spec.whatwg.org/; type: dfn; spec: dom
text: event target
</pre>
<pre class=link-defaults>
spec:web-animations-1; type:dfn;
text:active duration
Expand All @@ -39,6 +43,7 @@ spec:web-animations-1; type:dfn;
text:after phase; for:animation effect
text:animation class
text:animation effect
text:animation playback events
text:associated effect
text:associated effect end
text:before phase; for:animation effect
Expand Down Expand Up @@ -585,6 +590,12 @@ Animations Level 1 [[CSS3-ANIMATIONS]] since it must account for the
possibility of animations being seeked or reversed using the Web Animations API
[[WEB-ANIMATIONS]].

The [=event target|target=] for a CSS animation event is
the animation's [=owning element=].
If there is no [=owning element=], no CSS animation events are dispatched
(although the [=animation playback events=] defined in Web Animations are still
dispatched at the corresponding {{CSSAnimation}} object).

For the purpose of determining which events to dispatch, the
[[web-animations-1#animation-effect-phases-and-states|phases]] defined in
the Web Animations model are used. These definitions apply to an <a>animation
Expand Down

0 comments on commit c177038

Please sign in to comment.