@@ -33,8 +33,6 @@ and as has been increasingly adopted
33
33
on the web since Windows IE 5.5 introduced it in 2000.
34
34
[Note: Add citations of examples from Bugzilla 77790 and webcompat] .
35
35
36
- Should we add scrollbar width? (<a href="https://github.com/w3c/csswg-drafts/issues/1958">Issue 1958</a> )
37
-
38
36
Out of scope:
39
37
<a href="https://www.w3.org/wiki/Css-scrollbars#Why_not_pseudos">pseudo-elements for selecting specific parts of a scrollbar are unnecesssary</a>
40
38
for the documented use-cases and are thus out of scope for this specification.
@@ -76,11 +74,14 @@ Note: Unlike 'overflow' (and overflow-*) properties,
76
74
scrollbar-* values set on the HTML body element are not propagated to the viewport.
77
75
78
76
<dl dfn-type="value" dfn-for="scrollbar-face-color">
79
- <dt> <dfn>auto</dfn>
77
+ <dt> <dfn>auto</dfn> </dt>
80
78
<dd> default platform rendering for that portion of the scrollbar, in the absence of any other
81
- related scrollbar color properties. See details below for which scrollbar color are related to which.
82
- <dt> <dfn><<color>></dfn>
79
+ related scrollbar color properties.
80
+ See details below for which scrollbar color are related to which.
81
+ </dd>
82
+ <dt> <dfn><<color>></dfn> </dt>
83
83
<dd> apply the color to that portion of the scrollbar, and potentially other portions of the scrollbar.
84
+ </dd>
84
85
</dl>
85
86
86
87
Details:
@@ -138,27 +139,26 @@ Media: visual
138
139
</pre>
139
140
140
141
This property allows the author to set the maximum thickness of an element’s scrollbars when they are shown.
141
- Negative <<length>> values are not allowed.
142
-
143
- When a user agent displays one or more scrollbars for an element,
144
- the thickness of those scrollbars must be no more than the computed 'scrollbar-width' value.
145
-
146
- <dl for=scrollbar-width>
147
142
143
+ <dl dfn-type="value" dfn-for=scrollbar-width>
148
144
<dt> <dfn >''auto''</dfn> </dt>
149
- <dd> implementations must use the default platform scrollbar width.</dd>
150
-
145
+ <dd> implementations must use the default platform scrollbar width.
146
+ </dd>
151
147
<dt> <dfn for=scrollbar-width>''thin''</dfn> </dt>
152
148
<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>
156
-
157
- Note: If scrollbar-width computes to 0, the element’s scrollbars are hidden,
149
+ or display a scrollbar thinner than the default platform scrollbar width.
150
+ </dd>
151
+ <dt> <dfn><<length>></dfn> </dt>
152
+ <dd> When a user agent displays one or more scrollbars for an element,
153
+ the thickness of those scrollbars must be no more than the computed 'scrollbar-width' length value.
154
+ Negative <<length>> values are not allowed. If scrollbar-width computes to 0, the element’s scrollbars are hidden,
158
155
however its scrollability is not affected.
156
+ </dd>
157
+ </dl>
159
158
160
159
Note: There is working group disagreement about whether to allow length values,
161
160
or only have keywords (auto, thin, none), or drop the scrollbar-width property altogether.
161
+ (<a href="https://github.com/w3c/csswg-drafts/issues/1958">Issue 1958</a> )
162
162
163
163
UAs must apply the scrollbar-width value set on the root element to the viewport.
164
164
0 commit comments