t422-rgba-a1.0-a

rgba() colors

WeasyPrint

This browser

Assertion
Opacity of 1.0 makes text fully opaque.

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: rgba() colors</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/#rgba-color">
 8 		<link rel="match" href="reference/t422-rgba-a1.0-a-ref.htm">
 9 		<meta name="flags" content="">
10 		<meta name="assert" content="Opacity of 1.0 makes text fully opaque.">
11 		<style type="text/css">
12 			html, body { background: white; }
13 			p { color: white; }
14 			#one { color: rgb(0, 0, 0); }
15 			#two { color: rgba(0, 0, 0, 1.0); }
16 		</style>
17 	</head>
18 	<body>
19 		<p id="one">This text should be the same color (black) as the line below.</p>
20 		<p id="two">This text should be the same color (black) as the line above.</p>
21 	</body>
22 </html>