@@ -3755,7 +3755,7 @@ API by the {{Animation}} interface.
37553755<pre class='idl'>
37563756[Exposed=Window,
37573757 Constructor (optional AnimationEffectReadOnly? effect = null,
3758- optional AnimationTimeline? timeline)]
3758+ optional AnimationTimeline? timeline = null )]
37593759interface Animation : EventTarget {
37603760 attribute DOMString id;
37613761 attribute AnimationEffectReadOnly? effect;
@@ -3786,10 +3786,7 @@ interface Animation : EventTarget {
37863786 1. Let <var> animation</var> be a new {{Animation}} object.
37873787 2. Run the procedure to <a>set the timeline of an animation</a> on
37883788 <var> animation</var> passing <var> timeline</var> as the <var> new
3789- timeline</var> or, if a <var> timeline</var> argument is not provided,
3790- passing the <a>default document timeline</a> of the {{Document}}
3791- <a lt="document associated with a window">associated</a> with the
3792- {{Window}} that is the <a>current global object</a> .
3789+ timeline</var> .
37933790 3. Run the procedure to <a>set the target effect of an animation</a> on
37943791 <var> animation</var> passing <var> source</var> as the <var> new
37953792 effect</var> .
@@ -3804,11 +3801,8 @@ interface Animation : EventTarget {
38043801 : <dfn argument
38053802 for="Animation/Animation(effect, timeline)"
38063803 lt="timeline"> timeline</dfn>
3807- :: An optional value which, if provided , specifies the <a>timeline</a>
3804+ :: An optional value which, if not null , specifies the <a>timeline</a>
38083805 with which to associate the newly-created <a>animation</a> .
3809- If not provided, the <a>default document timeline</a> of the
3810- {{Document}} <a lt="document associated with a window">associated</a>
3811- with the {{Window}} that is the <a>current global object</a> is used.
38123806
38133807 </div>
38143808
@@ -5901,6 +5895,10 @@ The following changes have been made since the <a
59015895* Added special handling to allow animating the 'offset' property from the
59025896 programming interface using <code>cssOffset</code> to avoid conflict with
59035897 the attribute name used to specify keyframe offsets.
5898+ * Updated the {{Animation/Animation(effect, timeline)}} constructor to use
5899+ <code class=es-value>null</code> as the default value when |timeline| is not
5900+ specified rather than automatically using the appropriate [=default document
5901+ timeline=].
59045902* Updated the procedure to <a>process a keyframes argument</a> to allow
59055903 specifying <code>offset</code>, <code>composite</code> and mulitple
59065904 <code>easing</code> values.
0 commit comments