t32-opacity-offscreen-multiple-boxes-1-c

opacity

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
Opacity is group opacity over elements (not boxes).

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: opacity</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/#transparency">
 8 		<link rel="match" href="reference/t32-opacity-offscreen-multiple-boxes-1-c-ref.htm">
 9 		<meta name="flags" content="">
10 		<meta name="assert" content="Opacity is group opacity over elements (not boxes).">
11 		<style type="text/css">
12 
13 		body { background: white; }
14 
15 		div.test { margin: 1em; line-height: 0.5em; font-family: monospace; }
16 		div.test span { opacity: 0.4; background: blue; color: blue; }
17 
18 		div.ref { height: 1em; width: 5em; background: rgb(153, 153, 255); }
19 
20 		</style>
21 	</head>
22 	<body>
23 
24 		<p>The following two boxes 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>