Skip to content

Commit 15bfa92

Browse files
committed
[css-overflow-4] Make scrollbar-gutter:stable apply to overflow:hidden
See #4674
1 parent d338826 commit 15bfa92

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

css-overflow-4/Overview.bs

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ Whether scrollbars appear on the start or end edge of the box is UA defined.
271271
For <a>classic scrollbars</a>,
272272
the width of the <a>scrollbar gutter</a> is the same as the width of the scrollbar.
273273
For <a>overlay scrollbars</a>,
274-
the width of the <a>scrollbar gutter</a> is UA defined.
274+
the width of the <a>scrollbar gutter</a>, if present, is UA defined.
275275
However, it must not be 0,
276276
and it must not change based on user interactions with the page or the scrollbar
277277
even if the scrollbar itself changes.
@@ -288,10 +288,11 @@ The values of this property have the following meaning:
288288

289289
<dt><dfn>stable</dfn>
290290
<dd>The <a>scrollbar gutter</a> is present when
291-
'overflow' is ''overflow/scroll'' or ''overflow/auto''
292-
and the scrollbar is a <a>classic scrollbar</a>
293-
even if the box is not overflowing,
294-
but not when the scrollbar is an <a>overlay scrollbar</a>.
291+
the scrollbar is a <a>classic scrollbar</a>
292+
when 'overflow' is ''overflow/hidden', ''overflow/scroll'', or ''overflow/auto'',
293+
regardless of whether the box is actually overflowing.
294+
The <a>scrollbar gutter</a> is not present
295+
when the scrollbar is an <a>overlay scrollbar</a>.
295296
296297
<dt><dfn>always</dfn>
297298
<dd>The <a>scrollbar gutter</a> is always present when
@@ -377,7 +378,26 @@ showing in which case space is reserved for the <a>scrollbar gutter</a>.
377378
<td>yes
378379
<td>yes
379380
<tr>
380-
<th rowspan=3>''overflow/visible'', ''overflow/hidden'', ''overflow/clip''
381+
<th rowspan=3>''overflow/hidden''
382+
<th>''scrollbar-gutter/auto''
383+
<td>
384+
<td>
385+
<td>
386+
<td>
387+
<tr>
388+
<th>''scrollbar-gutter/stable''
389+
<td>yes
390+
<td>yes
391+
<td>
392+
<td>
393+
<tr>
394+
<th>''scrollbar-gutter/always''
395+
<td>if ''force''
396+
<td>if ''force''
397+
<td>if ''force''
398+
<td>if ''force''
399+
<tr>
400+
<th rowspan=3>''overflow/visible'', ''overflow/clip''
381401
<th>''scrollbar-gutter/auto''
382402
<td>
383403
<td>

0 commit comments

Comments
 (0)