Skip to content

Commit e71b602

Browse files
committed
Bug 1935098 [wpt PR 49518] - ::column pseudo element parsing and computed style tests, a=testonly
Automatic update from web-platform-tests ::column pseudo element parsing and computed style tests Allowing ::column on ::before elements is not specifically mentioned in the spec, but a ::before element can be a multicol scroll container with generated content. There is also an assumption here that all properties fully cascade even if just a few actually have an effect. Bug: 365680822, 382090952 Change-Id: I73d725d4bbf071016d53fc5183f2b9cea177f9ce Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6068466 Reviewed-by: Daniil Sakhapov <sakhapovchromium.org> Commit-Queue: Rune Lillesveen <futharkchromium.org> Cr-Commit-Position: refs/heads/main{#1391571} -- wpt-commits: 1d55057f6bd6600ac536dc82a6b3e80dac095abe wpt-pr: 49518 UltraBlame original commit: 1f249b308e8890b706204126887fc54ffeb75238
1 parent a37d33b commit e71b602

File tree

3 files changed

+740
-0
lines changed

3 files changed

+740
-0
lines changed
Lines changed: 368 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,368 @@
1+
<
2+
!
3+
DOCTYPE
4+
html
5+
>
6+
<
7+
title
8+
>
9+
CSS
10+
Multi
11+
-
12+
column
13+
Layout
14+
Test
15+
:
16+
Computed
17+
:
18+
:
19+
column
20+
style
21+
<
22+
/
23+
title
24+
>
25+
<
26+
link
27+
rel
28+
=
29+
"
30+
help
31+
"
32+
href
33+
=
34+
"
35+
https
36+
:
37+
/
38+
/
39+
drafts
40+
.
41+
csswg
42+
.
43+
org
44+
/
45+
css
46+
-
47+
multicol
48+
-
49+
2
50+
/
51+
#
52+
column
53+
-
54+
pseudo
55+
"
56+
>
57+
<
58+
script
59+
src
60+
=
61+
"
62+
/
63+
resources
64+
/
65+
testharness
66+
.
67+
js
68+
"
69+
>
70+
<
71+
/
72+
script
73+
>
74+
<
75+
script
76+
src
77+
=
78+
"
79+
/
80+
resources
81+
/
82+
testharnessreport
83+
.
84+
js
85+
"
86+
>
87+
<
88+
/
89+
script
90+
>
91+
<
92+
script
93+
src
94+
=
95+
"
96+
/
97+
css
98+
/
99+
support
100+
/
101+
computed
102+
-
103+
testcommon
104+
.
105+
js
106+
"
107+
>
108+
<
109+
/
110+
script
111+
>
112+
<
113+
style
114+
>
115+
#
116+
target
117+
{
118+
font
119+
-
120+
size
121+
:
122+
20px
123+
;
124+
scroll
125+
-
126+
margin
127+
-
128+
bottom
129+
:
130+
4px
131+
;
132+
}
133+
#
134+
target
135+
:
136+
:
137+
column
138+
{
139+
font
140+
-
141+
size
142+
:
143+
40px
144+
;
145+
scroll
146+
-
147+
snap
148+
-
149+
align
150+
:
151+
start
152+
;
153+
scroll
154+
-
155+
snap
156+
-
157+
stop
158+
:
159+
always
160+
;
161+
scroll
162+
-
163+
margin
164+
:
165+
2px
166+
;
167+
scroll
168+
-
169+
margin
170+
-
171+
top
172+
:
173+
2em
174+
;
175+
scroll
176+
-
177+
margin
178+
-
179+
bottom
180+
:
181+
inherit
182+
;
183+
}
184+
<
185+
/
186+
style
187+
>
188+
<
189+
div
190+
id
191+
=
192+
"
193+
target
194+
"
195+
>
196+
<
197+
/
198+
div
199+
>
200+
<
201+
script
202+
>
203+
const
204+
column_style
205+
=
206+
getComputedStyle
207+
(
208+
target
209+
"
210+
:
211+
:
212+
column
213+
"
214+
)
215+
;
216+
test
217+
(
218+
(
219+
)
220+
=
221+
>
222+
{
223+
assert_equals
224+
(
225+
column_style
226+
.
227+
fontSize
228+
"
229+
40px
230+
"
231+
)
232+
;
233+
}
234+
"
235+
:
236+
:
237+
column
238+
font
239+
-
240+
size
241+
applied
242+
"
243+
)
244+
;
245+
test
246+
(
247+
(
248+
)
249+
=
250+
>
251+
{
252+
assert_equals
253+
(
254+
column_style
255+
.
256+
scrollSnapAlign
257+
"
258+
start
259+
"
260+
)
261+
;
262+
}
263+
"
264+
:
265+
:
266+
column
267+
scroll
268+
-
269+
snap
270+
-
271+
align
272+
"
273+
)
274+
;
275+
test
276+
(
277+
(
278+
)
279+
=
280+
>
281+
{
282+
assert_equals
283+
(
284+
column_style
285+
.
286+
scrollSnapStop
287+
"
288+
always
289+
"
290+
)
291+
;
292+
}
293+
"
294+
:
295+
:
296+
column
297+
scroll
298+
-
299+
snap
300+
-
301+
stop
302+
"
303+
)
304+
;
305+
test
306+
(
307+
(
308+
)
309+
=
310+
>
311+
{
312+
assert_equals
313+
(
314+
column_style
315+
.
316+
scrollSnapMarginLeft
317+
"
318+
2px
319+
"
320+
)
321+
;
322+
assert_equals
323+
(
324+
column_style
325+
.
326+
scrollSnapMarginRight
327+
"
328+
2px
329+
"
330+
)
331+
;
332+
assert_equals
333+
(
334+
column_style
335+
.
336+
scrollSnapMarginTop
337+
"
338+
80px
339+
"
340+
)
341+
;
342+
assert_equals
343+
(
344+
column_style
345+
.
346+
scrollSnapMarginBottom
347+
"
348+
4px
349+
"
350+
)
351+
;
352+
}
353+
"
354+
:
355+
:
356+
column
357+
scroll
358+
-
359+
snap
360+
-
361+
margin
362+
"
363+
)
364+
;
365+
<
366+
/
367+
script
368+
>

0 commit comments

Comments
 (0)