@@ -5814,30 +5814,21 @@ dictionary GetAnimationsOptions {
5814
5814
If the above procedure causes an exception to be thrown, propagate the
5815
5815
exception and abort this procedure.
5816
5816
5817
+ 1. If <var> options</var> is a {{KeyframeAnimationOptions}} object, let
5818
+ <var> timeline</var> be the <code> timeline</code> member of
5819
+ <var> options</var> or, if <code> timeline</code> member of
5820
+ <var> options</var> is missing, be the <a>default document timeline</a>
5821
+ of the <a>node document</a> of the element on which this method was
5822
+ called.
5823
+
5817
5824
1. Construct a new {{Animation}} object, <var> animation</var> , in
5818
5825
the <a>relevant Realm</a> of <var> target</var> by using the
5819
5826
same procedure as the {{Animation()}} constructor, passing
5820
- <var> effect</var> as the argument of the same name, and
5821
- the <a>default document timeline</a> of the <a>node document</a>
5822
- of the element on which this method was called as the
5823
- <var> timeline</var> argument.
5824
-
5825
- 1. If <var> options</var> is a {{KeyframeAnimationOptions}} object, run the
5826
- following steps:
5827
-
5828
- 1. Assign the value of the <code> id</code> member of <var> options</var>
5829
- to <var> animation</var> 's {{Animation/id}} attribute.
5830
-
5831
- 2. Let <var> timeline</var> be the <code> timeline</code> member of
5832
- <var> options</var> or, if <code> timeline</code> member of
5833
- <var> options</var> is missing, be the
5834
- <a>default document timeline</a> of the {{Document}}
5835
- <a lt="document associated with a window">associated</a> with the
5836
- {{Window}} that is the <a>current global object</a> .
5827
+ <var> effect</var> and <var> timeline</var> as arguments of the same name.
5837
5828
5838
- 3 . Run the procedure to <a>set the timeline of an animation</a> on
5839
- <var> animation </var> passing <var> timeline </var> as the <var> new
5840
- timeline < /var> .
5829
+ 1 . If <var> options </var> is a {{KeyframeAnimationOptions}} object,
5830
+ assign the value of the <code> id </code> member of <var> options </var>
5831
+ to <var> animation < /var>'s {{Animation/id}} attribute .
5841
5832
5842
5833
1. Run the procedure to <a>play an animation</a> for
5843
5834
<var> animation</var> with the <var> auto-rewind</var> flag set to true.
@@ -5872,12 +5863,6 @@ animation.play();</pre>
5872
5863
lt="options"> options</dfn>
5873
5864
:: The timing and animation options for the created {{KeyframeEffect}} and
5874
5865
{{Animation}} .
5875
- For {{KeyframeEffect}} this value is passed to the
5876
- {{KeyframeEffect(target, keyframes, options)}} constructor as the
5877
- <var> options</var> parameter and has the same interpretation as defined
5878
- for that constructor. For {{Animation}} , <code> id</code> and
5879
- <code> timeline</code> member gets assigned to the created
5880
- {{Animation}} 's {{Animation/id}} and {{Animation/timeline}} attributes.
5881
5866
5882
5867
</div>
5883
5868
0 commit comments