Skip to content

Commit cd2ad9b

Browse files
committed
[scroll-animations-1] ViewTimeline needs a subject arg, not a source arg. #7157
1 parent ae086a2 commit cd2ad9b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scroll-animations-1/rewrite.bs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ spec: cssom-view-1; type: dfn;
346346

347347
<pre class="idl">
348348
dictionary ViewTimelineOptions {
349-
Element source;
349+
Element subject;
350350
ScrollDirection axis = "block";
351351
};
352352

@@ -398,6 +398,10 @@ spec: cssom-view-1; type: dfn;
398398

399399
1. Set the {{ViewTimeline/subject}} and {{ScrollTimeline/axis}} properties of |timeline|
400400
to the corresponding values from |options|.
401+
402+
1. Set the {{ScrollTimeline/source}} of |timeline|
403+
to the {{ViewTimeline/subject}}’s
404+
nearest ancestor [=scroll container=] element.
401405
</dl>
402406

403407
Inherited attributes:
@@ -422,8 +426,7 @@ spec: cssom-view-1; type: dfn;
422426
</dl>
423427

424428
If the {{ScrollTimeline/source}} or {{ViewTimeline/subject}} of a {{ViewTimeline}}
425-
is an element whose [=principal box=] does not exist
426-
or is not a [=scroll container=],
429+
is an element whose [=principal box=] does not exist,
427430
then its {{AnimationTimeline/phase}} is the [=timeline inactive phase=].
428431
The timeline is otherwise
429432
* in the [=timeline before phase|before=] phase when {{AnimationTimeline/currentTime}} < {{ViewTimeline/startTime}}

0 commit comments

Comments
 (0)