Skip to content

Commit 170769d

Browse files
author
Sylvain Galineau
committed
[css-animations] animation-play-state: paused also pauses the delay phase
1 parent 4afca87 commit 170769d

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

css-animations/Overview.bs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -602,9 +602,11 @@ The 'animation-play-state' property</h3>
602602
While this property is set to ''paused'',
603603
the animation is paused.
604604
The animation continues to apply to the element with the progress it had made before being paused.
605-
When unpaused (set back to ''running''),
606-
it restarts from where it left off,
605+
When unpaused (set back to ''running''), it restarts from where it left off,
607606
as if the "clock" that controls the animation had stopped and started again.
607+
608+
If the property is set to ''paused'' during the delay phase of the animation,
609+
the delay clock is also paused and resumes as soon as 'animation-play-state' is set back to ''running''.
608610
</dl>
609611

610612
<h3 id="animation-delay">
@@ -1052,7 +1054,7 @@ Working Group Resolutions that are pending editing</h2>
10521054
<li>Animations only run if they contain at least one valid keyframe rule (<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=15251">Bug</a>)
10531055
<li><del>When an element changes from display:none to display: non-none, animations start immediately (<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=14785">Bug</a>)</del>
10541056
<li>An initially-paused animation is still started (fires start events etc.) (<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=14774">Bug</a>)
1055-
<li>Animations can be paused during their delay phase, which freezes the remaining delay to be applied after it unpauses (<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=14774">Bug</a>)
1057+
<li><del>Animations can be paused during their delay phase, which freezes the remaining delay to be applied after it unpauses (<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=14774">Bug</a>)</del>
10561058
<li><del>animation-play-state has the same list behavior as the other animaton properties, matching the length of animation-name (<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=14786">Bug</a>)</del>
10571059
</ul>
10581060
<li>2013-02-20 minutes

css-animations/Overview.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -661,9 +661,11 @@ <h3 class="heading settled heading" data-level=4.7 id=animation-play-state><span
661661
While this property is set to <a class=css data-link-type=maybe href=#valuedef-paused title=paused>paused</a>,
662662
the animation is paused.
663663
The animation continues to apply to the element with the progress it had made before being paused.
664-
When unpaused (set back to <a class=css data-link-type=maybe href=#valuedef-running title=running>running</a>),
665-
it restarts from where it left off,
664+
When unpaused (set back to <a class=css data-link-type=maybe href=#valuedef-running title=running>running</a>), it restarts from where it left off,
666665
as if the "clock" that controls the animation had stopped and started again.
666+
667+
<p> If the property is set to <a class=css data-link-type=maybe href=#valuedef-paused title=paused>paused</a> during the delay phase of the animation,
668+
the delay clock is also paused and resumes as soon as <a class=property data-link-type=propdesc href=#propdef-animation-play-state title=animation-play-state>animation-play-state</a> is set back to <a class=css data-link-type=maybe href=#valuedef-running title=running>running</a>.
667669
</dl>
668670

669671
<h3 class="heading settled heading" data-level=4.8 id=animation-delay><span class=secno>4.8 </span><span class=content>
@@ -1067,7 +1069,7 @@ <h2 class="heading settled heading" data-level=8 id=wg-resolutions-pending><span
10671069
<li>Animations only run if they contain at least one valid keyframe rule (<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=15251">Bug</a>)
10681070
<li><del>When an element changes from display:none to display: non-none, animations start immediately (<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=14785">Bug</a>)</del>
10691071
<li>An initially-paused animation is still started (fires start events etc.) (<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=14774">Bug</a>)
1070-
<li>Animations can be paused during their delay phase, which freezes the remaining delay to be applied after it unpauses (<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=14774">Bug</a>)
1072+
<li><del>Animations can be paused during their delay phase, which freezes the remaining delay to be applied after it unpauses (<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=14774">Bug</a>)</del>
10711073
<li><del>animation-play-state has the same list behavior as the other animaton properties, matching the length of animation-name (<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=14786">Bug</a>)</del>
10721074
</ul>
10731075
<li>2013-02-20 minutes

0 commit comments

Comments
 (0)