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: no mixed 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-no-mixed-f-ref.htm">
9 <meta name="flags" content="invalid">
10 <meta name="assert" content="Test that rgb() values are only accepted when all integers or all percentages.">
11 <style type="text/css">
12 p { color: green; }
13 p { color: rgb(255, 0, 0%); }
14 p { color: rgb(100%, 0%, 0); }
15 p { color: rgb(100%, 1, 0); }
16 p { color: rgb(255, 1%, 0%); }
17 p { color: rgb(99%, 0%, 0); }
18 p { color: rgb(0%, 0, 0%); }
19 p { color: rgb(0, 0%, 0%); }
20 p { color: rgb(254, 255%, 0); }
21 </style>
22 </head>
23 <body>
24 <p>This text should be green.</p>
25
26 <div>Note: the rules tested by this test may be changed in
27 future levels of the CSS Color Module.</div>
28 </body>
29 </html>