t425-hsla-onscreen-multiple-boxes-c

hsla() overpainting

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
Test that hsla() does not behave like opacity and draw in an offscreen buffer.

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: hsla() overpainting</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/#hsla-color">
 8 		<link rel="match" href="reference/t422-rgba-onscreen-multiple-boxes-c-ref.htm">
 9 		<meta name="flags" content="">
10 		<meta name="assert" content="Test that hsla() does not behave like opacity and draw in an offscreen buffer.">
11 		<style type="text/css">
12 
13 		body { background: white; }
14 
15 		div.test { margin: 1em; line-height: 0; font-family: monospace; }
16 		div.test span { background: hsla(240, 100%, 50%, 0.4); color: hsla(0, 100%, 50%, 0); }
17 
18 		div.ref { height: 1em; width: 5em; background: rgb(92, 92, 255); }
19 
20 		</style>
21 	</head>
22 	<body>
23 
24 		<p>These two rectangles should be the same color:</p>
25 
26 		<div class="test"><span>XXXXX<br>XXXXX</span></div>
27 
28 		<div class="ref"></div>
29 
30 	</body>
31 </html>