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: rgba() 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/#rgba-color">
8 <link rel="match" href="reference/t422-rgba-clamping-a1.0-b-ref.htm">
9 <meta name="flags" content="">
10 <meta name="assert" content="Alpha components of rgba() colors greater than 1 are clamped to 1.">
11 <style type="text/css">
12 html, body { background: white; }
13 #two, #three, #four, #five, #six { color: rgba(0, 0, 0, 0); }
14
15 #two { color: rgba(0, 0, 0, 1.0); }
16 #three { color: rgba(0, 0, 0, 1.1); }
17 #four { color: rgba(0, 0, 0, 1.9); }
18 #five { color: rgba(0, 0, 0, 30); }
19 #six { color: rgba(0, 0, 0, 7439.79); }
20 </style>
21 </head>
22 <body>
23 <p id="one">There should be six lines of text on this page, all the same color. [1 of 6]</p>
24 <p id="two">There should be six lines of text on this page, all the same color. [2 of 6]</p>
25 <p id="three">There should be six lines of text on this page, all the same color. [3 of 6]</p>
26 <p id="four">There should be six lines of text on this page, all the same color. [4 of 6]</p>
27 <p id="five">There should be six lines of text on this page, all the same color. [5 of 6]</p>
28 <p id="six">There should be six lines of text on this page, all the same color. [6 of 6]</p>
29 </body>
30 </html>