@@ -21,11 +21,14 @@ Editor: Florian Rivoal, Invited Expert, https://florian.rivoal.net/, w3cid 43241
2121Abstract : This CSS module defines properties
2222 to influence the visual styling of scrollbars,
2323 introducing controls for their color and width.
24+ WPT Path Prefix : css/css-scrollbars/
2425</pre>
2526
2627<h2 id="intro">
2728Introduction</h2>
2829
30+ <wpt title="This section is not normative, it does not need tests."></wpt>
31+
2932 <em> This section is non-normative.</em>
3033
3134 This CSS module introduces properties
@@ -36,6 +39,8 @@ Introduction</h2>
3639<h3 id="scope">
3740Scope</h3>
3841
42+ <wpt title="This section is not normative, it does not need tests."></wpt>
43+
3944 The CSS Scrollbars Module is specifically for styling scrollbar controls themselves,
4045 e.g. their color & width in Level 1, and not their layout nor whether any content is scrollable.
4146 All layout impacts and content scrollability are specified in the
@@ -55,6 +60,29 @@ Scope</h3>
5560<h4 id="out-of-scope">
5661Out Of Scope</h4>
5762
63+ <wpt title="This section is not normative, it does not need tests."></wpt>
64+
65+ <wpt title="The following tests verify an undefined interraction with ::-webkit-scrollbar">
66+ scrollbar-color-001.html
67+ scrollbar-color-002.html
68+ scrollbar-color-003.html
69+ scrollbar-color-004.html
70+ scrollbar-color-005.html
71+ scrollbar-color-006.html
72+ scrollbar-color-007.html
73+ scrollbar-color-008.html
74+ scrollbar-color-009.html
75+ scrollbar-color-010.html
76+
77+ scrollbar-width-010.html
78+ scrollbar-width-011.html
79+ scrollbar-width-012.html
80+ scrollbar-width-013.html
81+ scrollbar-width-014.html
82+ scrollbar-width-015.html
83+ scrollbar-width-016.html
84+ </wpt>
85+
5886 The internal structure, layout, and configuration of scrollbars,
5987 as well as precise control over their coloring, is out of scope.
6088 This is because different platforms have
@@ -77,6 +105,8 @@ Out Of Scope</h4>
77105<h3 id="values">
78106Value Definitions</h3>
79107
108+ <wpt title="This section does not introduce any new normative requirement, it does not need tests."></wpt>
109+
80110 This specification follows the <a href="https://www.w3.org/TR/CSS2/about.html#property-defs">CSS property definition conventions</a> from [[!CSS2]]
81111 using the <a href="https://www.w3.org/TR/css-values-3/#value-defs">value definition syntax</a> from [[!CSS-VALUES-3]] .
82112 Value types not defined in this specification are defined in CSS Values & Units [[!CSS-VALUES-3]] .
@@ -89,6 +119,26 @@ Value Definitions</h3>
89119
90120<h2 id="scrollbar-color">Scrollbar Colors: the 'scrollbar-color' property</h2>
91121
122+ <wpt title="
123+ This section has partial test coverage.
124+
125+ Missing:
126+ * Tests checking that the property does anything
127+ * Tests checking that the colors apply to the right parts
128+ * Initial value
129+ * Tests of animation type">
130+ </wpt>
131+
132+ <wpt title="The following tests have no basis in the spec:
133+ they assume that making the thumb and the track transparent must make the whole scollbar invisible.
134+ This is not necessarily true:
135+ * the scrollbar may have other parts, such as scroll up/down/left/right buttons
136+ * the spec does not require that the thumb / track are painted solid with the specified colors">
137+
138+ scrollbar-color-012.html
139+ transparent-on-root.html
140+ </wpt>
141+
92142 <pre class="propdef">
93143 Name : scrollbar-color
94144 Value : auto | <<color>>{2}
@@ -100,13 +150,46 @@ Value Definitions</h3>
100150 Percentages : n/a
101151 </pre>
102152
153+ <wpt>
154+ inheritance.html
155+ scrollbar-color-parsing.html
156+ </wpt>
157+
103158 This property allows the author to set colors of an element's scrollbars.
104159
160+ <wpt title="This test useful but insufficient: it checks what the property doesn't do, not what it does.">
161+ input-scrollbar-color.html
162+ </wpt>
163+ <wpt title="This test useful but insufficient: it checks that *if* the property works, current-color works.">
164+ scrollbar-color-011.html
165+ </wpt>
166+ <wpt title="These tests are useful but insufficient: *if* the property works at all, they check that it updates correctly.">
167+ scrollbar-color-dynamic-1.html
168+ scrollbar-color-dynamic-2.html
169+ scrollbar-color-dynamic-3.html
170+ scrollbar-color-dynamic-4.html
171+ scrollbar-color-dynamic-5.html
172+ scrollbar-color-dynamic-6.html
173+ scrollbar-color-dynamic-7.html
174+ </wpt>
175+
105176 UAs must apply the scrollbar-color value set on the root element to the viewport.
106177
178+ <wpt title="The following test about viewport propagation is useful but insufficient;
179+ the test will pass if the property has no effect at all.
180+ Also missing:
181+ * tests that check the interaction with css-contain, and in particular that that disables propagation">
182+
183+ viewport-scrollbar.html
184+ </wpt>
185+
107186 Note: Unlike 'overflow' (and overflow-*) properties,
108187 scrollbar-color value set on the HTML body element are not propagated to the viewport.
109188
189+ <wpt>
190+ viewport-scrollbar-body.html
191+ </wpt>
192+
110193 <dl dfn-type="value" dfn-for="scrollbar-color">
111194 <dt> <dfn>auto</dfn>
112195 <dd>
@@ -115,6 +198,17 @@ Value Definitions</h3>
115198 but may adjust the colors in accordance with 'color-scheme'
116199 or other contextual information
117200 to better suit the page.
201+
202+ <wpt title="These tests check that
203+ that if the scrollbar adjusts based on the color scheme,
204+ then dynamic updates to the color scheme
205+ do cause an update of the scrollbar's colors.">
206+
207+ scrollbar-color-scheme-dynamic-1.html
208+ scrollbar-color-scheme-dynamic-2.html
209+ scrollbar-color-scheme-dynamic-3.html
210+ scrollbar-color-scheme-dynamic-4.html
211+ </wpt>
118212 <dt> <dfn><<color>></dfn>
119213 <dd>
120214 The user agent should use the specified colors
@@ -181,6 +275,16 @@ Value Definitions</h3>
181275
182276<h2 id="scrollbar-width">Scrollbar Thickness: the 'scrollbar-width' property</h2>
183277
278+ <wpt title="
279+ This section has partial test coverage.
280+
281+ Missing:
282+ * Test that thin does something different fromm auto in at least some cases
283+ * Test that none does not affect scrollability
284+ * Initial value
285+ * Tests of animation type">
286+ </wpt>
287+
184288 <pre class="propdef">
185289 Name : scrollbar-width
186290 Value : auto | thin | none
@@ -192,9 +296,24 @@ Value Definitions</h3>
192296 Percentages : n/a
193297 </pre>
194298
299+ <wpt>
300+ inheritance.html
301+ scrollbar-width-parsing.html
302+ textarea-scrollbar-width-none.html
303+ </wpt>
304+
195305 This property allows the author to specify
196306 the desired thickness of an element’s scrollbars.
197307
308+ <wpt>
309+ scrollbar-width-paint-001.html
310+ scrollbar-width-paint-002.html
311+ scrollbar-width-paint-003.html
312+ scrollbar-width-paint-004.html
313+ scrollbar-width-paint-005.html
314+ scrollbar-width-paint-006.html
315+ </wpt>
316+
198317 <div class=advisement>
199318 The primary purpose of this property is not
200319 to allow authors to choose a particular scrollbar aesthetic for their pages,
@@ -231,6 +350,14 @@ Value Definitions</h3>
231350 (Implementers may wish to consult
232351 <a href="https://www.w3.org/TR/WCAG21/#target-size">WCAG 2.1 SC 2.5.5 Target Size</a> . [[WCAG21]] )
233352
353+ <wpt>
354+ scrollbar-width-keywords.html
355+ scrollbar-width-001.html
356+ scrollbar-width-002.html
357+ scrollbar-width-003.html
358+ scrollbar-width-004.html
359+ </wpt>
360+
234361 Note: User agents can use various strategies
235362 to ensure the usability of narrow scrollbars.
236363 For instance, in the case of <a spec=css-overflow-3>overlay scrollbars</a> ,
@@ -254,6 +381,16 @@ Value Definitions</h3>
254381 Implementations must not display any scrollbar,
255382 however the element's scrollability by other means is not affected.
256383
384+ <wpt>
385+ textarea-scrollbar-width-none.html
386+ scrollbar-width-keywords.html
387+ scrollbar-width-001.html
388+ scrollbar-width-002.html
389+ scrollbar-width-003.html
390+ scrollbar-width-004.html
391+ scrollbar-width-007.html
392+ </wpt>
393+
257394 <div class=advisement>
258395 Using this value can prevent mouse-only users from being able to scroll.
259396 Authors should ensure that mouse-only users can still reach hidden content,
@@ -282,15 +419,29 @@ Value Definitions</h3>
282419
283420 UAs must apply the 'scrollbar-width' value set on the root element to the viewport.
284421
422+ <wpt>
423+ scrollbar-width-005.html
424+ scrollbar-width-006.html
425+ scrollbar-width-007.html
426+ </wpt>
427+
285428 Note: Unlike the 'overflow' property (and its longhands),
286429 a 'scrollbar-width' value set on the HTML <{body}> element is not propagated to the viewport.
287430
431+ <wpt>
432+ scrollbar-width-008.html
433+ scrollbar-width-009.html
434+ scrollbar-width-014.html
435+ </wpt>
436+
288437 Note: This specification does not define the exact position or shape of the scrollbar,
289438 or any animation thereof, such as fading or sliding in/out of view.
290439
291440<h2 class="no-num" id="acknowledgments">
292441Appendix A. Acknowledgments</h2>
293442
443+ <wpt title="This section is not normative, it does not need tests."></wpt>
444+
294445 This appendix is <em> non-normative</em> .
295446
296447 <p>
@@ -305,28 +456,38 @@ Appendix A. Acknowledgments</h2>
305456<h2 class="no-num" id="changes">
306457Appendix B. Changes</h2>
307458
459+ <wpt title="This section is not normative, it does not need tests."></wpt>
460+
308461 This appendix is <em> non-normative</em> .
309462
310463<h3 class="no-num" id="changes-since-2021-12-06">
311464Changes since the <a href="https://www.w3.org/TR/2021/CR-css-scrollbars-1-20211206/">6 December 2021 Candidate Recommendation</a></h3>
312465
466+ <wpt title="This section is not normative, it does not need tests."></wpt>
467+
313468 * Switched the Animation type of 'scrollbar-width' to [=discrete=] ,
314469 reflecting the fact that this property only takes keyword values.
315470
316471<h3 class="no-num" id="changes-since-2021-12-02">
317472Changes since the <a href="https://www.w3.org/TR/css-scrollbars-1/">2021-12-02 Working Draft</a></h3>
318473
474+ <wpt title="This section is not normative, it does not need tests."></wpt>
475+
319476 * Boilerplate changes for CR
320477
321478<h3 class="no-num" id="changes-since-2021-08-05">
322479Changes from the <a href="https://www.w3.org/TR/2021/WD-css-scrollbars-1-20210805/">2021-08-05 Working Draft</a></h3>
323480
481+ <wpt title="This section is not normative, it does not need tests."></wpt>
482+
324483 * Switched "should" to a "must" with regards to accessibility of narrow scrollbars.
325484 (see <a href="https://github.com/w3c/csswg-drafts/issues/6675">Issue 6675</a> )
326485
327486<h3 class="no-num" id="changes-since-2018-09-25">
328487Changes from the <a href="https://www.w3.org/TR/2018/WD-css-scrollbars-1-20180925/">2018-09-25 First Public Working Draft</a></h3>
329488
489+ <wpt title="This section is not normative, it does not need tests."></wpt>
490+
330491 <ul>
331492 <li> <a href="https://github.com/w3c/csswg-drafts/issues/6438">#6538</a> :
332493 removed <css> light</css> and <css> dark</css> values of 'scrollbar-color'
@@ -346,21 +507,29 @@ Changes from the <a href="https://www.w3.org/TR/2018/WD-css-scrollbars-1-2018092
346507<h2 class="no-num" id="security-privacy-considerations">
347508Appendix C. Security and Privacy</h2>
348509
510+ <wpt title="This section is not normative, it does not need tests."></wpt>
511+
349512 This appendix is <em> non-normative</em> .
350513
351514<h3 class="no-num" id="security-considerations">
352515Considerations for Security</h3>
353516
517+ <wpt title="This section is not normative, it does not need tests."></wpt>
518+
354519 No specific concerns regarding security have been identified for this specification.
355520
356521<h3 class="no-num" id="privacy-considerations">
357522Considerations for Privacy</h3>
358523
524+ <wpt title="This section is not normative, it does not need tests."></wpt>
525+
359526 No specific concerns regarding privacy have been identified for this specification.
360527
361528<h3 class="no-num" id="security-privacy-self-review">
362529Self-review questionnaire</h3>
363530
531+ <wpt title="This section is not normative, it does not need tests."></wpt>
532+
364533 Per the <a href="https://www.w3.org/TR/security-privacy-questionnaire/#questions">
365534 Self-Review Questionnaire: Security and Privacy: Questions to Consider</a>
366535
@@ -423,6 +592,8 @@ Self-review questionnaire</h3>
423592<h2 class="no-num" id="accessibility-considerations">
424593Appendix D. Considerations for accessibility</h2>
425594
595+ <wpt title="This section is not normative, it does not need tests."></wpt>
596+
426597 This appendix is <em> non-normative</em> .
427598
428599 <div class=informative>
0 commit comments