Skip to content

Commit b60ccdb

Browse files
authored
[scroll-animations-1] Add self keyword #8227
1 parent 776f2d3 commit b60ccdb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scroll-animations-1/Overview.bs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ spec: cssom-view-1; type: dfn;
147147
<pre class="prod">
148148
<<scroll()>> = scroll( [ <<scroller>> || <<axis>> ]? )
149149
<dfn noexport><<axis>></dfn> = block | inline | vertical | horizontal
150-
<dfn noexport><<scroller>></dfn> = root | nearest
150+
<dfn noexport><<scroller>></dfn> = root | nearest | self
151151
</pre>
152152

153153
By default,
@@ -184,6 +184,12 @@ spec: cssom-view-1; type: dfn;
184184
<dt><dfn>root</dfn>
185185
<dd>
186186
Specifies to use the document viewport as the [=scroll container=].
187+
188+
<dt><dfn>self</dfn>
189+
<dd>
190+
Specifies to use the element’s own [=principal box=] as the [=scroll container=].
191+
If the [=principal box=] is not a [=scroll container=],
192+
then the [=scroll progress timeline=] is [=inactive timeline|inactive=].
187193
</dl>
188194

189195
Each use of ''scroll()'' corresponds to its own instance of {{ScrollTimeline}}

0 commit comments

Comments
 (0)