@@ -50,58 +50,56 @@ Values</h3>
50
50
also accept the <a>CSS-wide keywords</a> keywords as their property value.
51
51
For readability they have not been repeated explicitly.
52
52
53
- <h2 id="scrollbar-color-properties">
54
- Scrollbar Colors: the 'scrollbar-face-color' and 'scrollbar-track-color' properties</h2>
53
+ <h2 id="scrollbar-color">Scrollbar Colors: the 'scrollbar-color' property</h2>
55
54
56
55
<pre class="propdef">
57
- Name : scrollbar-face-color,
58
- scrollbar-track-color
59
- Value : auto | <<color>>
56
+ Name : scrollbar-color
57
+ Value : auto | <<color>>{2}
60
58
Initial : auto
61
59
Inherited : yes
62
- Computed value : the computed color or the keyword auto
60
+ Computed value : two computed colors or the keyword auto
63
61
Animation type : <a href="https://www.w3.org/TR/css3-transitions/#animtype-color">color</a>
64
62
Applies to : boxes to which 'overflow' applies
65
63
Percentages : n/a
66
64
</pre>
67
65
68
- These properties allow the author to set colors for various aspects of an element’ s scrollbars.
66
+ This property allows the author to set colors of an element' s scrollbars.
69
67
70
- UAs must apply the scrollbar-* values set on the root element to the viewport.
68
+ UAs must apply the scrollbar-color value set on the root element to the viewport.
71
69
72
70
Note: Unlike 'overflow' (and overflow-*) properties,
73
- scrollbar-* values set on the HTML body element are not propagated to the viewport.
71
+ scrollbar-color value set on the HTML body element are not propagated to the viewport.
74
72
75
- <dl dfn-type="value" dfn-for="scrollbar-face- color">
73
+ <dl dfn-type="value" dfn-for="scrollbar-color">
76
74
<dt> <dfn>auto</dfn> </dt>
77
- <dd> default platform rendering for that portion of the scrollbar, in the absence of any other
78
- related scrollbar color properties.
79
- See details below for which scrollbar color are related to which.
80
- </dd>
75
+ <dd> default platform rendering for the scrollbar.</dd>
81
76
<dt> <dfn><<color>></dfn> </dt>
82
- <dd> apply the color to that portion of the scrollbar, and potentially other portions of the scrollbar.
77
+ <dd>
78
+ apply the first color to the thumb of the scrollbar,
79
+ and the second color to the track of the scrollbar.
83
80
</dd>
84
81
</dl>
85
82
86
83
Details:
87
84
88
- If scrollbar-track-color computes to auto, and scrollbar-face-color is not auto,
89
- it is used to color the scrollbar track.
85
+ Track refers to the background of the scrollbar,
86
+ which is generally fixed regardless of the scrolling position.
90
87
91
- If an element has both horizontal and vertical scrollbars, and the scrollbar-face-color is not auto,
92
- use it for the area in the corner between the two scrollbars .
88
+ Thumb refers to the moving part of the scrollbar,
89
+ which usually floats on top of the track .
93
90
94
- If the color of any part of the scrollbar is specified,
95
- implementations may render a simpler scrollbar than the default platform UI rendering, and color it accordingly.
91
+ If this property computes to value other than ''auto'' ,
92
+ implementations may render a simpler scrollbar than the default platform UI rendering,
93
+ and color it accordingly.
96
94
97
95
(Note: add diagram showing the different named pieces - something like
98
96
<a href="http://www.howtocreate.co.uk/tutorials/scrlbar.html">http://www.howtocreate.co.uk/tutorials/scrlbar.html</a> )
99
97
100
98
(Note: add example of an overflow element with colorized scrollbars to match page styling,
101
99
PNG of the same in a browser that supports it currently)
102
100
103
- Implementations may ignore any scrollbar color properties for scrollbar parts that do not exist
104
- on the underlying platform.
101
+ Implementations may ignore any of the colors
102
+ if the corresponding part do not exist on the underlying platform.
105
103
106
104
Note: when a user interacts with a scrollbar (e.g. hovering or activating),
107
105
implementations may alter which scrollbar colors apply to which scrollbar parts.
@@ -117,8 +115,7 @@ See related <a href="https://github.com/w3c/csswg-drafts/issues/1956">Issue 1956
117
115
118
116
<pre><code class="css">
119
117
<!-- -->html {
120
- <!-- --> scrollbar-face-color: ThreeDFace;
121
- <!-- --> scrollbar-track-color: Scrollbar;
118
+ <!-- --> scrollbar-color: ThreeDFace Scrollbar;
122
119
<!-- -->}</code></pre>
123
120
</div>
124
121
0 commit comments