Skip to content

Commit 22f5b87

Browse files
committed
Bug 1834584 [wpt PR 40169] - CSS parsing of scrollbar-color, a=testonly
Automatic update from web-platform-tests CSS parsing of scrollbar-color The scrollbar-color CSS property allows the author to set the thumb and track color of an element's scrollbar. Its syntax is "auto | <color>{2}". This is behind the ScrollbarColor feature flag (status: experimental) See the CSS Scrollbars spec for more details: https://drafts.csswg.org/css-scrollbars Bug: 891944 Change-Id: I16494e5cb4e412c09a5ee88154b9ead39551ed5f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4557165 Reviewed-by: Rune Lillesveen <futharkchromium.org> Commit-Queue: Rune Lillesveen <futharkchromium.org> Cr-Commit-Position: refs/heads/main{#1148657} -- wpt-commits: b22c9bb52f359e46d30f8812d6cc83c2742816e4 wpt-pr: 40169 UltraBlame original commit: 42a6e14ea68a6e829561b0dfcc3df87b6219586d
1 parent 3e41b22 commit 22f5b87

File tree

1 file changed

+313
-0
lines changed

1 file changed

+313
-0
lines changed
Lines changed: 313 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,313 @@
1+
<
2+
!
3+
doctype
4+
html
5+
>
6+
<
7+
meta
8+
charset
9+
=
10+
"
11+
utf
12+
-
13+
8
14+
"
15+
>
16+
<
17+
title
18+
>
19+
CSS
20+
Scrollbars
21+
:
22+
parsing
23+
scrollbar
24+
-
25+
color
26+
declarations
27+
<
28+
/
29+
title
30+
>
31+
<
32+
link
33+
rel
34+
=
35+
"
36+
help
37+
"
38+
href
39+
=
40+
"
41+
https
42+
:
43+
/
44+
/
45+
drafts
46+
.
47+
csswg
48+
.
49+
org
50+
/
51+
css
52+
-
53+
scrollbars
54+
/
55+
"
56+
/
57+
>
58+
<
59+
meta
60+
name
61+
=
62+
"
63+
assert
64+
"
65+
content
66+
=
67+
"
68+
Parsing
69+
scrollbar
70+
-
71+
color
72+
declarations
73+
"
74+
>
75+
<
76+
script
77+
src
78+
=
79+
"
80+
/
81+
resources
82+
/
83+
testharness
84+
.
85+
js
86+
"
87+
>
88+
<
89+
/
90+
script
91+
>
92+
<
93+
script
94+
src
95+
=
96+
"
97+
/
98+
resources
99+
/
100+
testharnessreport
101+
.
102+
js
103+
"
104+
>
105+
<
106+
/
107+
script
108+
>
109+
<
110+
script
111+
src
112+
=
113+
"
114+
/
115+
css
116+
/
117+
support
118+
/
119+
parsing
120+
-
121+
testcommon
122+
.
123+
js
124+
"
125+
>
126+
<
127+
/
128+
script
129+
>
130+
<
131+
script
132+
>
133+
test_valid_value
134+
(
135+
'
136+
scrollbar
137+
-
138+
color
139+
'
140+
'
141+
initial
142+
'
143+
)
144+
;
145+
test_valid_value
146+
(
147+
'
148+
scrollbar
149+
-
150+
color
151+
'
152+
'
153+
inherit
154+
'
155+
)
156+
;
157+
test_valid_value
158+
(
159+
'
160+
scrollbar
161+
-
162+
color
163+
'
164+
'
165+
unset
166+
'
167+
)
168+
;
169+
test_valid_value
170+
(
171+
'
172+
scrollbar
173+
-
174+
color
175+
'
176+
'
177+
revert
178+
'
179+
)
180+
;
181+
test_valid_value
182+
(
183+
'
184+
scrollbar
185+
-
186+
color
187+
'
188+
'
189+
auto
190+
'
191+
)
192+
;
193+
test_valid_value
194+
(
195+
"
196+
scrollbar
197+
-
198+
color
199+
"
200+
"
201+
red
202+
green
203+
"
204+
)
205+
;
206+
test_valid_value
207+
(
208+
"
209+
scrollbar
210+
-
211+
color
212+
"
213+
"
214+
#
215+
FF0000
216+
#
217+
00FF00
218+
"
219+
"
220+
rgb
221+
(
222+
255
223+
0
224+
0
225+
)
226+
rgb
227+
(
228+
0
229+
255
230+
0
231+
)
232+
"
233+
)
234+
;
235+
test_valid_value
236+
(
237+
"
238+
scrollbar
239+
-
240+
color
241+
"
242+
"
243+
currentcolor
244+
currentcolor
245+
"
246+
)
247+
;
248+
test_invalid_value
249+
(
250+
"
251+
scrollbar
252+
-
253+
color
254+
"
255+
"
256+
"
257+
)
258+
;
259+
test_invalid_value
260+
(
261+
"
262+
scrollbar
263+
-
264+
color
265+
"
266+
"
267+
auto
268+
auto
269+
"
270+
)
271+
;
272+
test_invalid_value
273+
(
274+
"
275+
scrollbar
276+
-
277+
color
278+
"
279+
"
280+
auto
281+
currentcolor
282+
"
283+
)
284+
;
285+
test_invalid_value
286+
(
287+
"
288+
scrollbar
289+
-
290+
color
291+
"
292+
"
293+
red
294+
"
295+
)
296+
;
297+
test_invalid_value
298+
(
299+
"
300+
scrollbar
301+
-
302+
color
303+
"
304+
"
305+
#
306+
FF0000
307+
"
308+
)
309+
;
310+
<
311+
/
312+
script
313+
>

0 commit comments

Comments
 (0)