t424-hsl-clip-outside-gamut-b

hsl() clipping outside device gamut

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
Test clipping of hsl() values outside the device gamut.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3 	<head>
 4 		<title>CSS Test: hsl() clipping outside device gamut</title>
 5 		<link rel="author" title="L. David Baron" href="https://dbaron.org/">
 6 		<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
 7 		<link rel="help" href="http://www.w3.org/TR/css3-color/#hsl-color">
 8 		<link rel="match" href="reference/t424-hsl-clip-outside-gamut-b-ref.htm">
 9 		<meta name="flags" content="">
10 		<meta name="assert" content="Test clipping of hsl() values outside the device gamut.">
11 		<style type="text/css">
12 
13 		table { border-spacing: 0 2px; padding: 0; border: none; }
14 		td { border: none; padding: 0; height: 1.2em; }
15 
16 		</style>
17 	</head>
18 	<body>
19 
20 	<p><strong>WARNING: This test assumes that the device gamut is sRGB
21 	(as it will be for many CRT monitors).</strong></p>
22 
23 	<p>Every row in this table should have both columns the same color:</p>
24 
25 	<table>
26 		<tr>
27 			<th style="background:white; color: black">Column 1</th>
28 			<th style="background:black; color: white">Column 2</th>
29 		</tr>
30 		<tr>
31 			<td style="background: hsl(240, 100%, -100%)">&nbsp;</td>
32 			<td style="background: black">&nbsp;</td>
33 		</tr>
34 		<tr>
35 			<td style="background: hsl(240, 75%, -20%)">&nbsp;</td>
36 			<td style="background: black">&nbsp;</td>
37 		</tr>
38 		<tr>
39 			<td style="background: hsl(240, 75%, 120%)">&nbsp;</td>
40 			<td style="background: white">&nbsp;</td>
41 		</tr>
42 		<tr>
43 			<td style="background: hsl(240, 130%, 50%)">&nbsp;</td>
44 			<td style="background: rgb(0, 0, 255)">&nbsp;</td>
45 		</tr>
46 		<tr>
47 			<td style="background: hsl(264, 130%, 50%)">&nbsp;</td>
48 			<td style="background: rgb(102, 0, 255)">&nbsp;</td>
49 		</tr>
50 		<tr>
51 			<td style="background: hsl(0, -50%, 40%)">&nbsp;</td>
52 			<td style="background: rgb(102, 102, 102)">&nbsp;</td>
53 		</tr>
54 		<tr>
55 			<td style="background: hsl(30, -50%, 60%)">&nbsp;</td>
56 			<td style="background: rgb(153, 153, 153)">&nbsp;</td>
57 		</tr>
58 	</table>
59 
60 	</body>
61 </html>