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-a0.0-b-ref.htm">
9 <meta name="flags" content="">
10 <meta name="assert" content="Alpha components of rgba() colors less than 0 are clamped to 0.">
11 <style type="text/css">
12 html, body { background: white; }
13 #one { color: rgb(0, 0, 0); }
14 #two { color: rgba(0, 0, 0, -0.0); }
15 #three { color: rgba(0, 0, 0, -0.1); }
16 #four { color: rgba(0, 0, 0, -0.9); }
17 #five { color: rgba(0, 0, 0, -30); }
18 #six { color: rgba(0, 0, 0, -7439.79); }
19 </style>
20 </head>
21 <body>
22 <p id="one">This should be the only text visible on this page.</p>
23 <p id="two">This text should NOT be visible.</p>
24 <p id="three">This text should NOT be visible.</p>
25 <p id="four">This text should NOT be visible.</p>
26 <p id="five">This text should NOT be visible.</p>
27 <p id="six">This text should NOT be visible.</p>
28 </body>
29 </html>