Skip to content

Commit 0280a0a

Browse files
committed
[css-overflow] Propagate scrollbar-gutter to the viewport
See w3c#6079
1 parent 0f78ba4 commit 0280a0a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

css-overflow-4/Overview.bs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,13 @@ When the <a>scrollbar gutter</a> is present but the scrollbar is not,
316316
or the scrollbar is transparent or otherwise does not fully obscure the <a>scrollbar gutter</a>,
317317
the background of the <a>scrollbar gutter</a> must be painted as an extension of the padding.
318318
319+
As for the 'overflow' property,
320+
when 'scrollbar-gutter' is set on the root element,
321+
the user agent must apply it to the viewport instead,
322+
and the used value on the root element itself is ''scrollbar-gutter: auto''.
323+
However, unlike the 'overflow' property,
324+
the user agent must not propagate 'scrollbar-gutter' from the HTML <{body}> element.
325+
319326
<div class=note>
320327
Note: The following table summarizes the interaction of 'overflow' and 'scrollbar-gutter'
321328
showing in which case space is reserved for a <a>classic scrollbar</a>'s <a>scrollbar gutter</a>.

0 commit comments

Comments
 (0)