@@ -865,23 +865,6 @@ follows:
865865 <var> animation</var> with the <var> did seek</var> flag set to false, and
866866 the <var> synchronously notify</var> flag set to false.
867867
868- The procedure to <dfn export for=animation>reset an animation's pending tasks</dfn> for
869- <var> animation</var> is as follows:
870-
871- 1. If <var> animation</var> does not have a <a>pending play task</a> or a
872- <a>pending pause task</a> , abort this procedure.
873- 1. If <var> animation</var> has a <a>pending play task</a> , cancel that task.
874- 1. If <var> animation</var> has a <a>pending pause task</a> , cancel that task.
875- 1. [=Apply any pending playback rate=] on |animation|.
876- 1. <a lt="reject a Promise">Reject</a> <var> animation</var> 's <a>current ready
877- promise</a> with a DOMException named "AbortError".
878- 1. Set the \[[PromiseIsHandled]] internal slot of |animation|'s
879- <a>current ready promise</a> to true.
880- 1. Let <var> animation</var> 's <a>current ready promise</a> be the result of
881- <a lt="create a new resolved Promise">creating a new resolved Promise
882- object</a> with value <var> animation</var> in the <a>relevant Realm</a> of
883- <var> animation</var> .
884-
885868### The current time of an animation ### {#the-current-time-of-an-animation}
886869
887870<a>Animations</a> provide a <a>time value</a> to their <a>associated
@@ -1807,6 +1790,24 @@ as follows:
180717901. Make <var> animation</var> 's <a>hold time</a> <a>unresolved</a> .
180817911. Make <var> animation</var> 's [=start time=] <a>unresolved</a> .
18091792
1793+ The procedure to
1794+ <dfn export for=animation>reset an animation's pending tasks</dfn>
1795+ for <var> animation</var> is as follows:
1796+
1797+ 1. If <var> animation</var> does not have a <a>pending play task</a> or a
1798+ <a>pending pause task</a> , abort this procedure.
1799+ 1. If <var> animation</var> has a <a>pending play task</a> , cancel that task.
1800+ 1. If <var> animation</var> has a <a>pending pause task</a> , cancel that task.
1801+ 1. [=Apply any pending playback rate=] on |animation|.
1802+ 1. <a lt="reject a Promise">Reject</a> <var> animation</var> 's <a>current ready
1803+ promise</a> with a DOMException named "AbortError".
1804+ 1. Set the \[[PromiseIsHandled]] internal slot of |animation|'s
1805+ <a>current ready promise</a> to true.
1806+ 1. Let <var> animation</var> 's <a>current ready promise</a> be the result of
1807+ <a lt="create a new resolved Promise">creating a new resolved Promise
1808+ object</a> with value <var> animation</var> in the <a>relevant Realm</a> of
1809+ <var> animation</var> .
1810+
18101811### Speed control ### {#speed-control}
18111812
18121813<div class="informative-bg">
0 commit comments