Skip to content

Commit bc636e5

Browse files
committed
Bug 1564660 [wpt PR 17442] - [css-images] Radii are clamped non-negative, a=testonly
Automatic update from web-platform-tests [css-images] Radii are clamped non-negative (#17442) Compute colors and lengths in background-image getComputedStyle w3c/csswg-drafts#4042 Test that radii like calc(-0.5em + 10px) are clamped to be non-negative. https://drafts.csswg.org/css-images/#radial-gradients -- wpt-commits: b93cbfae1eb9e2a1248fb2d835ac7a7b1dc649cd wpt-pr: 17442 UltraBlame original commit: 059a8f834fdf90f64c412f8ccd2de0cdd0910758
1 parent 255f3d3 commit bc636e5

File tree

1 file changed

+307
-0
lines changed

1 file changed

+307
-0
lines changed

testing/web-platform/tests/css/css-backgrounds/parsing/background-image-computed.sub.html

Lines changed: 307 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,27 @@
8888
"
8989
>
9090
<
91+
meta
92+
name
93+
=
94+
"
95+
assert
96+
"
97+
content
98+
=
99+
"
100+
Colors
101+
and
102+
lengths
103+
are
104+
computed
105+
with
106+
radii
107+
clamped
108+
.
109+
"
110+
>
111+
<
91112
script
92113
src
93114
=
@@ -143,6 +164,23 @@
143164
script
144165
>
145166
<
167+
style
168+
>
169+
#
170+
target
171+
{
172+
font
173+
-
174+
size
175+
:
176+
40px
177+
;
178+
}
179+
<
180+
/
181+
style
182+
>
183+
<
146184
/
147185
head
148186
>
@@ -229,6 +267,275 @@
229267
'
230268
)
231269
;
270+
test_computed_value
271+
(
272+
'
273+
background
274+
-
275+
image
276+
'
277+
'
278+
linear
279+
-
280+
gradient
281+
(
282+
to
283+
left
284+
bottom
285+
red
286+
blue
287+
)
288+
'
289+
'
290+
linear
291+
-
292+
gradient
293+
(
294+
to
295+
left
296+
bottom
297+
rgb
298+
(
299+
255
300+
0
301+
0
302+
)
303+
rgb
304+
(
305+
0
306+
0
307+
255
308+
)
309+
)
310+
'
311+
)
312+
;
313+
test_computed_value
314+
(
315+
'
316+
background
317+
-
318+
image
319+
'
320+
'
321+
radial
322+
-
323+
gradient
324+
(
325+
10px
326+
at
327+
20px
328+
30px
329+
rgb
330+
(
331+
255
332+
0
333+
0
334+
)
335+
rgb
336+
(
337+
0
338+
0
339+
255
340+
)
341+
)
342+
'
343+
)
344+
;
345+
test_computed_value
346+
(
347+
'
348+
background
349+
-
350+
image
351+
'
352+
'
353+
radial
354+
-
355+
gradient
356+
(
357+
circle
358+
calc
359+
(
360+
-
361+
0
362+
.
363+
5em
364+
+
365+
10px
366+
)
367+
at
368+
calc
369+
(
370+
-
371+
1em
372+
+
373+
10px
374+
)
375+
calc
376+
(
377+
-
378+
2em
379+
+
380+
10px
381+
)
382+
red
383+
blue
384+
)
385+
'
386+
'
387+
radial
388+
-
389+
gradient
390+
(
391+
0px
392+
at
393+
-
394+
30px
395+
-
396+
70px
397+
rgb
398+
(
399+
255
400+
0
401+
0
402+
)
403+
rgb
404+
(
405+
0
406+
0
407+
255
408+
)
409+
)
410+
'
411+
)
412+
;
413+
test_computed_value
414+
(
415+
'
416+
background
417+
-
418+
image
419+
'
420+
'
421+
radial
422+
-
423+
gradient
424+
(
425+
ellipse
426+
calc
427+
(
428+
-
429+
0
430+
.
431+
5em
432+
+
433+
10px
434+
)
435+
calc
436+
(
437+
0
438+
.
439+
5em
440+
+
441+
10px
442+
)
443+
at
444+
20px
445+
30px
446+
red
447+
blue
448+
)
449+
'
450+
'
451+
radial
452+
-
453+
gradient
454+
(
455+
0px
456+
30px
457+
at
458+
20px
459+
30px
460+
rgb
461+
(
462+
255
463+
0
464+
0
465+
)
466+
rgb
467+
(
468+
0
469+
0
470+
255
471+
)
472+
)
473+
'
474+
)
475+
;
476+
test_computed_value
477+
(
478+
'
479+
background
480+
-
481+
image
482+
'
483+
'
484+
radial
485+
-
486+
gradient
487+
(
488+
ellipse
489+
calc
490+
(
491+
0
492+
.
493+
5em
494+
+
495+
10px
496+
)
497+
calc
498+
(
499+
-
500+
0
501+
.
502+
5em
503+
+
504+
10px
505+
)
506+
at
507+
20px
508+
30px
509+
red
510+
blue
511+
)
512+
'
513+
'
514+
radial
515+
-
516+
gradient
517+
(
518+
30px
519+
0px
520+
at
521+
20px
522+
30px
523+
rgb
524+
(
525+
255
526+
0
527+
0
528+
)
529+
rgb
530+
(
531+
0
532+
0
533+
255
534+
)
535+
)
536+
'
537+
)
538+
;
232539
<
233540
/
234541
script

0 commit comments

Comments
 (0)