File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -3951,7 +3951,7 @@ API by the {{Animation}} interface.
39513951interface Animation : EventTarget {
39523952 attribute DOMString id;
39533953 attribute AnimationEffect? effect;
3954- attribute AnimationTimeline? timeline;
3954+ readonly attribute AnimationTimeline? timeline;
39553955 attribute double? startTime;
39563956 attribute double? currentTime;
39573957 attribute double playbackRate;
@@ -4021,8 +4021,6 @@ interface Animation : EventTarget {
40214021 the procedure to <a>set the target effect of an animation</a> .
40224022: <dfn attribute for=Animation>timeline</dfn>
40234023:: The <a>timeline</a> associated with this animation.
4024- Setting this attribute updates the object's <a>timeline</a> using
4025- the procedure to <a>set the timeline of an animation</a> .
40264024: <dfn attribute for=Animation>startTime</dfn>
40274025:: Returns the [=start time=] of this animation.
40284026 Setting this attribute updates the [=start time=] using
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ urlPrefix: https://drafts.csswg.org/web-animations-1/; type: dfn; spec: web-anim
7070 text: playback direction
7171 text: pause an animation
7272 text: ready
73+ text: set the timeline of an animation
7374 text: simple iteration progress
7475 text: target effect
7576 text: target element
@@ -1512,6 +1513,26 @@ partial interface AnimationTimeline {
15121513
15131514</div>
15141515
1516+ <h3 id="the-animation-interface">The <code>Animation</code> interface</h3>
1517+
1518+ The <a>Animation</a> interface is amended to make the <var> timeline</var> member mutable:
1519+
1520+ <pre class='idl'>
1521+ [Exposed=Window,
1522+ Constructor(optional AnimationEffect? effect = null,
1523+ optional AnimationTimeline? timeline)]
1524+ interface Animation : EventTarget {
1525+ attribute AnimationTimeline? timeline;
1526+ };
1527+ </pre>
1528+
1529+ <div class='attributes'>
1530+
1531+ : <dfn attribute for=Animation>timeline</dfn>
1532+ :: The <a>timeline</a> associated with this animation.
1533+ Setting this attribute updates the object's <a>timeline</a> using
1534+ the procedure to <a>set the timeline of an animation</a> .
1535+
15151536<h3 id="the-animationeffectreadonly-interface">The <code>AnimationEffectReadOnly</code> interface</h3>
15161537
15171538
You can’t perform that action at this time.
0 commit comments