Skip to content

Commit 0b33f38

Browse files
author
Sylvain Galineau
committed
[css-animations] Negative delays cause starte event to fire even when play state is paused
1 parent 7872905 commit 0b33f38

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

css-animations/Overview.bs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -842,10 +842,11 @@ Types of <code>AnimationEvent</code></h3>
842842
<dl dfn-type=event dfn-for=animationevent>
843843
<dt><dfn>animationstart</dfn>
844844
<dd>
845-
The <a idl>animationstart</a> event occurs at the start of the animation. If there is an
846-
'animation-delay' then this event will fire once the delay period has expired.
847-
A negative delay will cause the event to fire with an elapsedTime equal to the
848-
absolute value of the delay.
845+
The <a idl>animationstart</a> event occurs at the start of the animation.
846+
If there is an 'animation-delay' then this event will fire once the delay
847+
period has expired. A negative delay will cause the event to fire with
848+
an elapsedTime equal to the absolute value of the delay; in this case the
849+
event will fire whether 'animation-play-state' is set to ''running'' or ''paused''.
849850
<ul>
850851
<li>Bubbles: Yes</li>
851852
<li>Cancelable: No</li>
@@ -1061,9 +1062,9 @@ Working Group Resolutions that are pending editing</h2>
10611062
<li>Agreed that both transitions and animations animate all properties. css-transitions to define animation of non-interoperable/discrete values. They take their starting values below 50% timing function progress, and end values above
10621063
<li>Dynamic changes to animation properties/keyframes. Tab to propose resolution. (<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=14713">Bug 14713</a>)
10631064
<li>Negative animation-delay values apply against the active duration of the animation i.e. (animation-duration*animation-iteration-count). The delay can thus swallow iterations for which no iteration event will be fired. The start/end events are still fired. Even when delay == (-1*active_duration)
1064-
<li>Fire animation start/end events when animation-duration is zero, with 0 elapsedTime
1065+
<li><del>Fire animation start/end events when animation-duration is zero, with 0 elapsedTime
10651066
<li>If animation-iteration-count is infinite and duration is 0, treat the iteration-count as if it was finite and run a 0s second (option A in <a href="http://lists.w3.org/Archives/Public/www-style/2014Sep/0056.html">Brian's mail</a>)
1066-
<li>If an animation with a negative animation delay is initially paused, the start event still fires
1067+
<li><del>If an animation with a negative animation delay is initially paused, the start event still fires
10671068
</ul>
10681069

10691070
<li>2012-10-29 minutes

css-animations/Overview.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -864,10 +864,11 @@ <h3 class="heading settled heading" data-level=5.2 id=event-animationevent><span
864864
<dl data-dfn-for=animationevent data-dfn-type=event>
865865
<dt><dfn class=idl-code data-dfn-for=animationevent data-dfn-type=event data-export="" id=dom-animationevent-animationstart>animationstart<a class=self-link href=#dom-animationevent-animationstart></a></dfn>
866866
<dd>
867-
The <a data-link-type=idl href=#dom-animationevent-animationstart title=animationstart>animationstart</a> event occurs at the start of the animation. If there is an
868-
<a class=property data-link-type=propdesc href=#propdef-animation-delay title=animation-delay>animation-delay</a> then this event will fire once the delay period has expired.
869-
A negative delay will cause the event to fire with an elapsedTime equal to the
870-
absolute value of the delay.
867+
The <a data-link-type=idl href=#dom-animationevent-animationstart title=animationstart>animationstart</a> event occurs at the start of the animation.
868+
If there is an <a class=property data-link-type=propdesc href=#propdef-animation-delay title=animation-delay>animation-delay</a> then this event will fire once the delay
869+
period has expired. A negative delay will cause the event to fire with
870+
an elapsedTime equal to the absolute value of the delay; in this case the
871+
event will fire whether <a class=property data-link-type=propdesc href=#propdef-animation-play-state title=animation-play-state>animation-play-state</a> is set to <a class=css data-link-type=maybe href=#valuedef-running title=running>running</a> or <a class=css data-link-type=maybe href=#valuedef-paused title=paused>paused</a>.
871872
<ul>
872873
<li>Bubbles: Yes</li>
873874
<li>Cancelable: No</li>
@@ -1077,10 +1078,10 @@ <h2 class="heading settled heading" data-level=8 id=wg-resolutions-pending><span
10771078
<li>Agreed that both transitions and animations animate all properties. css-transitions to define animation of non-interoperable/discrete values. They take their starting values below 50% timing function progress, and end values above
10781079
<li>Dynamic changes to animation properties/keyframes. Tab to propose resolution. (<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=14713">Bug 14713</a>)
10791080
<li>Negative animation-delay values apply against the active duration of the animation i.e. (animation-duration*animation-iteration-count). The delay can thus swallow iterations for which no iteration event will be fired. The start/end events are still fired. Even when delay == (-1*active_duration)
1080-
<li>Fire animation start/end events when animation-duration is zero, with 0 elapsedTime
1081-
<li>If animation-iteration-count is infinite and duration is 0, treat the iteration-count as if it was finite and run a 0s second (option A in <a href=http://lists.w3.org/Archives/Public/www-style/2014Sep/0056.html>Brian’s mail</a>)
1082-
<li>If an animation with a negative animation delay is initially paused, the start event still fires
1083-
</ul>
1081+
<li><del>Fire animation start/end events when animation-duration is zero, with 0 elapsedTime
1082+
</del><li>If animation-iteration-count is infinite and duration is 0, treat the iteration-count as if it was finite and run a 0s second (option A in <a href=http://lists.w3.org/Archives/Public/www-style/2014Sep/0056.html>Brian’s mail</a>)
1083+
<li><del>If an animation with a negative animation delay is initially paused, the start event still fires
1084+
</del></ul>
10841085

10851086
<li>2012-10-29 minutes
10861087
<ul>

0 commit comments

Comments
 (0)