Skip to content

Commit 3fb269d

Browse files
authored
scrollbar-width:thin, note disagreement on width
add scrollbar-width:thin, note disagreement on width length value vs keywords vs width at all
1 parent 0de1ebc commit 3fb269d

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

css-scrollbars-1/Overview.bs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ See related <a href="https://github.com/w3c/csswg-drafts/issues/1956">Issue 1956
127127

128128
<pre class="propdef">
129129
Name: scrollbar-width
130-
Value: auto | <<length>>
130+
Value: auto | thin | <<length>>
131131
Initial: auto
132132
Inherited: no
133133
Computed value: absolute length or the keyword auto.
@@ -143,11 +143,23 @@ Negative <<length>> values are not allowed.
143143
When a user agent displays one or more scrollbars for an element,
144144
the thickness of those scrollbars must be no more than the computed 'scrollbar-width' value.
145145

146-
When scrollbar-width is 'auto', implementations must use the default platform scrollbar width.
146+
<dl for=scrollbar-width>
147+
148+
<dt><dfn >''auto''</dfn></dt>
149+
<dd>implementations must use the default platform scrollbar width.</dd>
150+
151+
<dt><dfn for=scrollbar-width>''thin''</dfn></dt>
152+
<dd>implementations must use either a thin scrollbar width variant on platforms that provide that option,
153+
or display a scrollbar thinner than the default platform scrollbar width.</dd>
154+
155+
</dl>
147156

148157
Note: If scrollbar-width computes to 0, the element’s scrollbars are hidden,
149158
however its scrollability is not affected.
150159

160+
Note: There is working group disagreement about whether to allow length values,
161+
or only have keywords (auto, thin, none), or drop the scrollbar-width property altogether.
162+
151163
UAs must apply the scrollbar-width value set on the root element to the viewport.
152164

153165
Note: Unlike 'overflow' (and overflow-*) properties,

0 commit comments

Comments
 (0)