Skip to content

Commit ffd9a56

Browse files
authored
Merge pull request #3112 from upsuper/scrollbar-dark-light
[css-scrollbar] Add scrollbar-color: dark/light
2 parents ea1d85f + e16afab commit ffd9a56

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

css-scrollbars-1/Overview.bs

+13-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Values</h3>
6767

6868
<pre class="propdef">
6969
Name: scrollbar-color
70-
Value: auto | <<color>>{2}
70+
Value: auto | dark | light | <<color>>{2}
7171
Initial: auto
7272
Inherited: yes
7373
Computed value: two computed colors or the keyword auto
@@ -86,6 +86,18 @@ scrollbar-color value set on the HTML body element are not propagated to the vie
8686
<dl dfn-type="value" dfn-for="scrollbar-color">
8787
<dt><dfn>auto</dfn></dt>
8888
<dd>default platform rendering for the scrollbar.</dd>
89+
<dt><dfn>dark</dfn></dt>
90+
<dd>
91+
show a dark scrollbar,
92+
which can be either a dark variant of scrollbar provided by the platform,
93+
or a custom scrollbar with dark colors.
94+
</dd>
95+
<dt><dfn>light</dfn></dt>
96+
<dd>
97+
show a light scrollbar,
98+
which can be either a light variant of scrollbar provided by the platform,
99+
or a custom scrollbar with light colors.
100+
</dd>
89101
<dt><dfn><<color>></dfn></dt>
90102
<dd>
91103
apply the first color to the thumb of the scrollbar,

0 commit comments

Comments
 (0)