Skip to content

Commit 1a344d6

Browse files
committed
[web-animations-1] Revert changes to Animation constructor.
This reverts changeset d354480. See issue w3c#2078.
1 parent f742210 commit 1a344d6

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

web-animations-1/Overview.bs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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 = null)]
3758+
optional AnimationTimeline? timeline)]
37593759
interface Animation : EventTarget {
37603760
attribute DOMString id;
37613761
attribute AnimationEffectReadOnly? effect;
@@ -3786,7 +3786,10 @@ 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>.
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>.
37903793
3. Run the procedure to <a>set the target effect of an animation</a> on
37913794
<var>animation</var> passing <var>source</var> as the <var>new
37923795
effect</var>.
@@ -3801,8 +3804,11 @@ interface Animation : EventTarget {
38013804
: <dfn argument
38023805
for="Animation/Animation(effect, timeline)"
38033806
lt="timeline">timeline</dfn>
3804-
:: An optional value which, if not null, specifies the <a>timeline</a>
3807+
:: An optional value which, if provided, specifies the <a>timeline</a>
38053808
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.
38063812

38073813
</div>
38083814

@@ -5894,10 +5900,6 @@ The following changes have been made since the <a
58945900
* Added special handling to allow animating the 'offset' property from the
58955901
programming interface using <code>cssOffset</code> to avoid conflict with
58965902
the attribute name used to specify keyframe offsets.
5897-
* Updated the {{Animation/Animation(effect, timeline)}} constructor to use
5898-
<code class=es-value>null</code> as the default value when |timeline| is not
5899-
specified rather than automatically using the appropriate [=default document
5900-
timeline=].
59015903
* Updated the procedure to <a>process a keyframes argument</a> to allow
59025904
specifying <code>offset</code>, <code>composite</code> and mulitple
59035905
<code>easing</code> values.

0 commit comments

Comments
 (0)