Skip to content

Commit 3e84c70

Browse files
[web-animations-2] Update timeline currentTime type to allow CSSNumericValue timelines (#8371)
1 parent f4121a8 commit 3e84c70

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

scroll-animations-1/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ spec: cssom-view-1; type: dfn;
270270
or if there is no [=scrollable overflow=],
271271
then the {{ScrollTimeline}} is [=inactive timeline|inactive=].
272272

273-
A {{ScrollTimeline}}’s {{EffectTiming/duration}} is 100%.
273+
A {{ScrollTimeline}}’s {{AnimationTimeline/duration}} is 100%.
274274

275275
## Named Scroll Progress Timelines ## {#scroll-timelines-named}
276276

web-animations-2/Overview.bs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2178,13 +2178,23 @@ Items sorted earlier are executed before those sorted later.
21782178
<pre class="idl">
21792179
[Exposed=Window]
21802180
partial interface AnimationTimeline {
2181+
readonly attribute CSSNumberish? currentTime;
21812182
readonly attribute CSSNumberish? duration;
21822183
Animation play (optional AnimationEffect? effect = null);
21832184
};
21842185
</pre>
21852186

21862187
<div class='attributes'>
21872188

2189+
Update the attribute type for currentTime.
2190+
2191+
: <dfn attribute for=AnimationTimeline>currentTime</dfn>
2192+
:: Returns the <a lt="timeline current time">current time</a> for this
2193+
timeline or <code>null</code> if this timeline is
2194+
<a lt="inactive timeline">inactive</a>. The value is expressed as a
2195+
percentage for a [=progress-based timeline=], or as a double in
2196+
milliseconds otherwise.
2197+
21882198
: <dfn attribute for=AnimationTimeline>duration</dfn>
21892199
:: Returns the <a lt="timeline duration">duration</a> for this timeline.
21902200

0 commit comments

Comments
 (0)