Skip to content

Commit 9b133cf

Browse files
committed
[css-overflow-5] Specify that ::scroll-marker-group and ::scroll-button() generate as siblings of the originating element. w3c#11125
1 parent bd38052 commit 9b133cf

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

css-overflow-5/Overview.bs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,13 @@ The 'scroll-marker-group' property</h4>
228228

229229
<h4 id="scroll-marker-group-pseudo">The ''::scroll-marker-group'' pseudo-element</h4>
230230

231-
The <dfn selector>::scroll-marker-group</dfn> [=fully stylable pseudo-element=]
231+
The <dfn selector>::scroll-marker-group</dfn> [=fully styleable pseudo-element=]
232232
is generated by a [=scroll container=] element
233-
having a computed 'scroll-marker-group' property that is not 'none',
234-
adjacent to the [=scroll container=].
233+
having a computed 'scroll-marker-group' property that is not 'none'.
234+
235+
The ''::scroll-marker-group'' generates a box as a <em>sibling</em> of its [=originating element=],
236+
either immediately preceding (if ''scroll-marker-group: before'')
237+
or immediately following (if ''scroll-marker-group: after'').
235238

236239
The following additions are recommended for the default UA stylesheet
237240
to ensure that the generation of scroll marker pseudo-elements does not invalidate the layout of the site:
@@ -364,13 +367,11 @@ Scroll Buttons</h3>
364367
The <dfn>::scroll-button( <<scroll-button-direction>> )</dfn> pseudo-elements
365368
are generated on [=scroll containers=]
366369
when their computed 'content' value is not ''content/none''.
367-
They generate boxes as if they were immediate children
370+
They generate boxes as if they were immediately preceding <em>siblings</em>
368371
of their [=originating element=],
369372
with content as specified by 'content'.
370373
They exist after their [=originating element's=] ''::scroll-marker-group'' pseudo-element
371-
(when used with ''scroll-marker-group: before'')
372-
and before its ''::before'' pseudo-element,
373-
if those exist.
374+
(when used with ''scroll-marker-group: before'').
374375

375376
Four distinct ''::scroll-button()'' pseudo-elements can exist on a [=scroll container=],
376377
each associated with a [=logical=] direction,
@@ -445,7 +446,7 @@ to make it easier to style several buttons the same way?
445446
In particular, <css>all</css> is probably useful,
446447
but maybe also <css>horizontal</css>/<css>vertical</css>/<css>block</css>/<css>inline</css>.
447448
448-
The ''::scroll-button()''s are [=fully stylable pseudo-elements=]: there is no restriction on what properties apply to them.
449+
The ''::scroll-button()''s are [=fully styleable pseudo-elements=]: there is no restriction on what properties apply to them.
449450
450451
The '':disabled'' pseudo-class can apply to ''::scroll-button()''.
451452
It matches a given button

0 commit comments

Comments
 (0)