Skip to content

Commit 9c7f9c5

Browse files
authored
[css-overflow-5] Specify that root ::scroll-marker-group is a child. (#12184)
Generating a ::scroll-marker-group for the root element should create a pseudo-element as a child of the root, which otherwise has all the usual scroll marker behaviors, as resolved in #11802.
1 parent 8dbdb7d commit 9c7f9c5

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

css-overflow-5/Overview.bs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,17 @@ The 'scroll-marker-group' property
248248

249249
before
250250
251-
The [=scroll container=] generates a ''::scroll-marker-group'' pseudo-element
252-
whose box is an immediate preceding sibling to its [=originating element=].
251+
The [=scroll container=] generates a ''::scroll-marker-group'' pseudo-element.
252+
When originating from the root element,
253+
the generated pseudo-element's box is the first child of the [=originating element=].
254+
Otherwise, its box is an immediate preceding sibling to its [=originating element=].
253255

254256
after
255257
256-
The [=scroll container=] generates a ''::scroll-marker-group'' pseudo-element
257-
whose box is an immediate following sibling to its [=originating element=].
258+
The [=scroll container=] generates a ''::scroll-marker-group'' pseudo-element.
259+
When originating from the root element,
260+
the generated pseudo-element's box is the last child of the [=originating element=].
261+
Otherwise, its box is an immediate following sibling to its [=originating element=].
258262

259263
260264

0 commit comments

Comments
 (0)