Skip to content

Commit

Permalink
[web-animations-1] Tweak descriptions of processing dictionary arguments
Browse files Browse the repository at this point in the history
As of w3c#4235 these arguments will always be set.

The change to animate() simply corrects an existing oversight.
  • Loading branch information
birtles committed Aug 23, 2019
1 parent f0d7910 commit 3fafc22
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions web-animations-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4725,16 +4725,11 @@ interface KeyframeEffect : AnimationEffect {
: If <var>options</var> is a {{KeyframeEffectOptions}} object,
:: Let <var>timing input</var> be <var>options</var>.

: If <var>options</var> is a <code>double</code>,
: Otherwise (if <var>options</var> is a <code>double</code>),
:: Let <var>timing input</var> be a new
{{EffectTiming}} object with all members set to their default values
and {{EffectTiming/duration}} set to <var>options</var>.

: Otherwise (<var>options</var> is undefined),
:: Let <var>timing input</var> be a new
{{EffectTiming}} object with all members set to their default
values.

1. Call the procedure to [=update the timing properties of an
animation effect=] of |effect| from |timing input|.

Expand Down Expand Up @@ -5755,7 +5750,8 @@ dictionary GetAnimationsOptions {
of the element on which this method was called as the
<var>timeline</var> argument.

1. Assign the value of the <code>id</code> member of <var>options</var> to
1. If <var>options</var> is a {{KeyframeAnimationOptions}} object,
assign the value of the <code>id</code> member of <var>options</var> to
<var>animation</var>'s {{Animation/id}} attribute.

1. Run the procedure to <a>play an animation</a> for
Expand Down

0 comments on commit 3fafc22

Please sign in to comment.