t32-opacity-basic-0.6-a

opacity

WeasyPrint

This browser

Assertion
Opacity of 0.6 makes box partially opaque. Colors are in sRGB color space (may test).

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="help" href="http://www.w3.org/TR/css3-color/#rgb-color">
 9 		<meta name="flags" content="">
10 		<meta name="assert" content="Opacity of 0.6 makes box partially opaque.  Colors are in sRGB color space (may test).">
11 		<style type="text/css">
12 			html, body { background: white; color: black; }
13 			p { color: black; }
14 			#one { color: rgb(102, 102, 102); }
15 			#two { opacity: 0.6; }
16 		</style>
17 	</head>
18 	<body>
19 		<p id="one">This text should be the same color as the line below.</p>
20 		<p id="two">This text should be the same color as the line above.</p>
21 	</body>
22 </html>