Skip to content

Commit c6c8598

Browse files
authored
[scroll-animations-1] Scroll timelines are inactive in paged media. w3c#8226
1 parent 03a719c commit c6c8598

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

scroll-animations-1/Overview.bs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ spec: cssom-view-1; type: dfn;
153153
(i.e. the denominator in the [=timeline/current time=] formula is zero),
154154
the timeline is [=inactive timeline|inactive=].
155155

156+
In [=paged media=],
157+
[=scroll progress timelines=] that would otherwise reference the document viewport
158+
are also [=inactive timeline|inactive=].
159+
156160
## Anonymous Scroll Progress Timelines ## {#scroll-timelines-anonymous}
157161

158162
### The ''scroll()'' notation ### {#scroll-notation}
@@ -210,6 +214,9 @@ spec: cssom-view-1; type: dfn;
210214
then the [=scroll progress timeline=] is [=inactive timeline|inactive=].
211215
</dl>
212216

217+
References to the [=root element=] propagate to the document viewport
218+
(which functions as its [=scroll container=]).
219+
213220
Each use of ''scroll()'' corresponds to its own instance of {{ScrollTimeline}}
214221
in the Web Animations API,
215222
even if multiple elements use ''scroll()'' to refer
@@ -500,6 +507,10 @@ spec: cssom-view-1; type: dfn;
500507
(i.e. the denominator in the [=timeline/current time=] formula is zero),
501508
the timeline is [=inactive timeline|inactive=].
502509

510+
In [=paged media=],
511+
[=view progress timelines=] that would otherwise reference the document viewport
512+
are also [=inactive timeline|inactive=].
513+
503514
## Anonymous View Progress Timelines ## {#view-timelines-anonymous}
504515

505516
### The ''view()'' notation ### {#view-notation}
@@ -626,7 +637,8 @@ spec: cssom-view-1; type: dfn;
626637

627638
If the {{ScrollTimeline/source}} or {{ViewTimeline/subject}} of a {{ViewTimeline}}
628639
is an element whose [=principal box=] does not exist,
629-
or if its nearest ancestor [=scroll container=] has no [=scrollable overflow=],
640+
or if its nearest ancestor [=scroll container=] has no [=scrollable overflow=]
641+
(or if there is no such ancestor, e.g. in print media),
630642
then the {{ViewTimeline}} is [=inactive timeline|inactive=].
631643

632644
The values of {{ViewTimeline/subject}}, {{ScrollTimeline/source}}, and {{AnimationTimeline/currentTime}}

0 commit comments

Comments
 (0)