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: rgb() 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/#rgb-color">
8 <link rel="match" href="reference/t422-rgba-func-int-a-ref.htm">
9 <meta name="flags" content="">
10 <meta name="assert" content="Test that rgb() values produce correct colors.">
11 <style type="text/css">
12 #one { color: rgb(0, 0, 0); background: rgb(255, 255, 255); }
13 #two { color: rgb(255, 255, 255); background: rgb(0, 0, 0); }
14 #three { color: rgb(255, 0, 0); }
15 #four { color: rgb(0, 255, 0); }
16 #five { color: rgb(0, 0, 255); }
17 </style>
18 </head>
19 <body>
20 <p id="one">This should be black text on a white background.</p>
21 <p id="two">This should be white text on a black background.</p>
22 <p id="three">This text should be red.</p>
23 <p id="four">This text should be green.</p>
24 <p id="five">This text should be blue.</p>
25 </body>
26 </html>