t422-rgba-func-whitespace-b

whitespace in rgba() values

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
Test that whitespace is allowed within rgba() functions.

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: whitespace in rgba() values</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-func-whitespace-b-ref.htm">
 9 		<meta name="flags" content="">
10 		<meta name="assert" content="Test that whitespace is allowed within rgba() functions.">
11 		<style type="text/css">
12 		html, body { background: black; }
13 		#one { color: rgba(  0,
14 255		,0          ,1.0   ); }
15 		#two { color: rgba(0
16 ,255
17 ,0
18 ,          1.0); }
19 		#three { color: rgba(     0   ,   255    	  , 			0 ,              1.0); }
20 
21 		#four { color: rgba(  0%,
22 100%		,0%                   ,1.0    ); }
23 		#five { color: rgba(0%
24 ,100%
25 ,0%
26 ,          1.0); }
27 		#six { color: rgba(     0%   ,   100%    	  , 			0% ,
28      1.0); }
29 		</style>
30 	</head>
31 	<body>
32 		<p id="one">This text should be green.</p>
33 		<p id="two">This text should be green.</p>
34 		<p id="three">This text should be green.</p>
35 		<p id="four">This text should be green.</p>
36 		<p id="five">This text should be green.</p>
37 		<p id="six">This text should be green.</p>
38 	</body>
39 </html>