t32-opacity-offscreen-b

opacity

WeasyPrint

This browser

Assertion
That opacity specifies compositing the contents as a single 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: 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 		<meta name="flags" content="">
 9 		<meta name="assert" content="That opacity specifies compositing the contents as a single offscreen buffer.">
10 		<style type="text/css">
11 
12 		body { background: white; }
13 
14 		div { width: 5em; height: 1em; }
15 		div.color { background: blue; }
16 		div.top { margin: 2px 0; opacity: 0.4; }
17 
18 		div.ref { opacity: 1.0; background: rgb(153, 153, 255); }
19 
20 		</style>
21 	</head>
22 	<body>
23 		<p>The following five boxes should be the same color:</p>
24 
25 		<div class="top color"></div>
26 		<div class="top color"><div class="color"></div></div>
27 		<div class="top"><div class="color"></div></div>
28 		<div class="top"><div class="color"><div class="color"></div></div></div>
29 		<div class="top ref"></div>
30 	</body>
31 </html>