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 rgb() 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/#rgb-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 rgb() functions.">
11 <style type="text/css">
12 html, body { background: black; }
13 #one { color: rgb( 0,
14 255 ,0); }
15 #two { color: rgb(0
16 ,255
17 ,0); }
18 #three { color: rgb( 0 , 255 , 0 ); }
19
20 #four { color: rgb( 0%,
21 100% ,0%); }
22 #five { color: rgb(0%
23 ,100%
24 ,0%); }
25 #six { color: rgb( 0% , 100% , 0% ); }
26 </style>
27 </head>
28 <body>
29 <p id="one">This text should be green.</p>
30 <p id="two">This text should be green.</p>
31 <p id="three">This text should be green.</p>
32 <p id="four">This text should be green.</p>
33 <p id="five">This text should be green.</p>
34 <p id="six">This text should be green.</p>
35 </body>
36 </html>