Skip to content

Commit bc2469d

Browse files
committed
[css-scrollbars-1] Remove light/dark values of scrollbar-color w3c#6438
1 parent 6d64879 commit bc2469d

1 file changed

Lines changed: 5 additions & 18 deletions

File tree

css-scrollbars-1/Overview.bs

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Value Definitions</h3>
8080

8181
<pre class="propdef">
8282
Name: scrollbar-color
83-
Value: auto | dark | light | <<color>>{2}
83+
Value: auto | <<color>>{2}
8484
Initial: auto
8585
Inherited: yes
8686
Computed value: specified keyword or two computed colors
@@ -99,18 +99,6 @@ scrollbar-color value set on the HTML body element are not propagated to the vie
9999
<dl dfn-type="value" dfn-for="scrollbar-color">
100100
<dt><dfn>auto</dfn></dt>
101101
<dd>default platform rendering for the scrollbar.</dd>
102-
<dt><dfn>dark</dfn></dt>
103-
<dd>
104-
show a dark scrollbar,
105-
which can be either a dark variant of scrollbar provided by the platform,
106-
or a custom scrollbar with dark colors.
107-
</dd>
108-
<dt><dfn>light</dfn></dt>
109-
<dd>
110-
show a light scrollbar,
111-
which can be either a light variant of scrollbar provided by the platform,
112-
or a custom scrollbar with light colors.
113-
</dd>
114102
<dt><dfn><<color>></dfn></dt>
115103
<dd>
116104
apply the first color to the thumb of the scrollbar,
@@ -142,11 +130,6 @@ if the corresponding part do not exist on the underlying platform.
142130
When using 'scrollbar-color' property with specific color values,
143131
authors should ensure the specified colors have enough contrast between them.
144132
For keyword values, UAs should ensure the colors they use have enough contrast.
145-
UAs should ensure that their actual color values for
146-
''scrollbar-color/light'' and ''scrollbar-color/dark''
147-
should provide sufficient contrast with the element’s background
148-
(i.e. ''scrollbar-color/light'' on a light background and ''scrollbar-color/dark'' on a dark background
149-
should always have sufficient contrast)
150133
See
151134
<a href="https://www.w3.org/TR/WCAG21/#non-text-contrast">WCAG 2.1 SC 1.4.11 Non-text Contrast</a>
152135
[[WCAG21]].
@@ -256,6 +239,10 @@ This appendix is <em>informative</em>.
256239
This appendix describes changes from the
257240
<a href="https://www.w3.org/TR/2018/WD-css-scrollbars-1-20180925/">First Public Working Draft (FPWD) of 25 Sep 2018</a>.
258241
<ul>
242+
<li><a href="https://github.com/w3c/csswg-drafts/issues/6438">#6538</a>:
243+
removed <css>light</css> and <css>dark</css> values of 'scrollbar-color'
244+
in favor of allowing the UA to tune ''scrollbar-color/auto''
245+
in accordance with 'color-scheme' or other contextual information.
259246
<li><a href="https://github.com/w3c/csswg-drafts/issues/3237">#3237</a>:
260247
scrollbar-color computed value changed to: specified keyword or two computed colors
261248
</li>

0 commit comments

Comments
 (0)