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 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-no-mixed-f-ref.htm">
9 <meta name="flags" content="invalid">
10 <meta name="assert" content="Test that rgba() values are only accepted when all integers or all percentages.">
11 <style type="text/css">
12 p { color: green; }
13 p { color: rgba(255, 0, 0%, 1.0); }
14 p { color: rgba(100%, 0%, 0, 1.0); }
15 p { color: rgba(100%, 1, 0, 1.0); }
16 p { color: rgba(255, 1%, 0%, 1.0); }
17 p { color: rgba(99%, 0%, 0, 1.0); }
18 p { color: rgba(0%, 0, 0%, 1.0); }
19 p { color: rgba(0, 0%, 0%, 1.0); }
20 p { color: rgba(254, 255%, 0, 1.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>