t32-opacity-clamping-1.0-b

opacity

WeasyPrint

This browser

Assertion
Opacity values greater than 1.0 are clamped to 1.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 greater than 1.0 are clamped to 1.0">
10 		<style type="text/css">
11 			/* make sure clamped rather than a parser error */
12 			#two, #three, #four, #five, #six { opacity: 0.0; }
13 
14 			#two { opacity: 1.0; }
15 			#three { opacity: 1.1; }
16 			#four { opacity: 1.9; }
17 			#five { opacity: 30; }
18 			#six { opacity: 7439.79; }
19 		</style>
20 	</head>
21 	<body>
22 		<p id="one">There should be six lines of text on this page, all the same color. [1 of 6]</p>
23 		<p id="two">There should be six lines of text on this page, all the same color. [2 of 6]</p>
24 		<p id="three">There should be six lines of text on this page, all the same color. [3 of 6]</p>
25 		<p id="four">There should be six lines of text on this page, all the same color. [4 of 6]</p>
26 		<p id="five">There should be six lines of text on this page, all the same color. [5 of 6]</p>
27 		<p id="six">There should be six lines of text on this page, all the same color. [6 of 6]</p>
28 	</body>
29 </html>