Skip to content

Commit d117954

Browse files
committed
[scroll-animations-1] Addres bbirtles@ feedback (w3c#5013)
1 parent 2ebac2f commit d117954

File tree

1 file changed

+11
-26
lines changed

1 file changed

+11
-26
lines changed

web-animations-1/Overview.bs

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5814,30 +5814,21 @@ dictionary GetAnimationsOptions {
58145814
If the above procedure causes an exception to be thrown, propagate the
58155815
exception and abort this procedure.
58165816

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+
58175824
1. Construct a new {{Animation}} object, <var>animation</var>, in
58185825
the <a>relevant Realm</a> of <var>target</var> by using the
58195826
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.
58375828

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.
58415832

58425833
1. Run the procedure to <a>play an animation</a> for
58435834
<var>animation</var> with the <var>auto-rewind</var> flag set to true.
@@ -5872,12 +5863,6 @@ animation.play();</pre>
58725863
lt="options">options</dfn>
58735864
:: The timing and animation options for the created {{KeyframeEffect}} and
58745865
{{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.
58815866

58825867
</div>
58835868

0 commit comments

Comments
 (0)