Skip to content

Commit 36f8e22

Browse files
committed
[css-transitions-2] clarify that CSS transition events are dispatched at the owning element
1 parent c177038 commit 36f8e22

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

css-transitions-2/Overview.bs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ Issue Tracking: Bugzilla bugs for all levels https://www.w3.org/Bugs/Public/bugl
3030
Abstract: CSS Transitions allows property changes in CSS values to occur smoothly over a specified duration.
3131
Ignored Terms: translate, rotate, scale
3232
</pre>
33+
<pre class=anchors>
34+
urlPrefix: https://dom.spec.whatwg.org/; type: dfn; spec: dom
35+
text: event target
36+
</pre>
3337
<pre class=link-defaults>
3438
spec:css-transitions-1; type:value; text:all
3539
spec:css-transitions-1; type:dfn; text:cancel
@@ -39,6 +43,7 @@ spec:web-animations-1; type:dfn;
3943
text:active time
4044
text:animation class
4145
text:animation effect
46+
text:animation playback events
4247
text:associated effect
4348
text:associated effect end
4449
text:cancel an animation
@@ -222,6 +227,12 @@ properties not normally used with transitions (e.g. an effect that repeats
222227
multiple times) and hence this section provides a generic definition that
223228
accounts for the full complexity of the Web Animations model.
224229

230+
The [=event target|target=] for a transition event is
231+
the transition's [=owning element=].
232+
If there is no [=owning element=], no transition events are dispatched
233+
(although the [=animation playback events=] defined in Web Animations are still
234+
dispatched at the corresponding {{CSSTransition}} object).
235+
225236
To avoid firing redundant events, the set of events to dispatch is based
226237
on comparing the <a lt="transition phase">phase</a> of the transition in the
227238
previous [=animation frame=] to its current state.

0 commit comments

Comments
 (0)