Skip to content

Commit 5d1744f

Browse files
[scroll-animations-1][web-animations-2] Deferred start time (w3c#9181)
When using a scroll-driven animation the start time of the animation is auto-aligned with the animation range boundary when it has not been explicitly set.
1 parent 0c9b31f commit 5d1744f

2 files changed

Lines changed: 229 additions & 70 deletions

File tree

scroll-animations-1/Overview.bs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ Markup Shorthands: markdown yes
3131
<pre class=anchors>
3232
urlPrefix: https://html.spec.whatwg.org/multipage/window-object.html; type: dfn; spec: html
3333
text: document associated with a window; url: concept-document-window
34+
urlPrefix: https://drafts.csswg.org/web-animations-2/; type: dfn; spec: web-animations-2
35+
text: calculating an auto-aligned start time
3436
</pre>
3537
<pre class=link-defaults>
3638
spec:web-animations-1;
@@ -950,6 +952,11 @@ spec:selectors-4; type:dfn; text:selector
950952
and the state of a scroll-driven animation
951953
may be inconsistent in the composited frame.
952954

955+
When updating timeline current time,
956+
the [=start time=] of any attached animation is conditionally updated.
957+
For each attached animation,
958+
run the procedure for [=calculating an auto-aligned start time=].
959+
953960
# Privacy Considerations # {#privacy-considerations}
954961

955962
There are no known privacy impacts of the features in this specification.

0 commit comments

Comments
 (0)