t32-opacity-clamping-0.0-b

opacity

WeasyPrint

This browser

Assertion
Opacity values less than 0.0 are clamped to 0.0

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="Opacity values less than 0.0 are clamped to 0.0">
10 		<style type="text/css">
11 			#two { opacity: -0.0; }
12 			#three { opacity: -0.1; }
13 			#four { opacity: -0.9; }
14 			#five { opacity: -30; }
15 			#six { opacity: -7439.79; }
16 		</style>
17 	</head>
18 	<body>
19 		<p id="one">This should be the only text visible on this page.</p>
20 		<p id="two">This text should NOT be visible.</p>
21 		<p id="three">This text should NOT be visible.</p>
22 		<p id="four">This text should NOT be visible.</p>
23 		<p id="five">This text should NOT be visible.</p>
24 		<p id="six">This text should NOT be visible.</p>
25 	</body>
26 </html>