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="help" href="http://www.w3.org/TR/css3-color/#rgb-color">
9 <meta name="flags" content="">
10 <meta name="assert" content="Opacity of 0.6 makes text partially opaque. Colors are in sRGB color space (may test).">
11 <style type="text/css">
12 html, body { background: white; color: black; }
13 p { color: black; }
14 #one { color: rgb(102, 102, 102); }
15 #two { color: rgba(0, 0, 0, 0.6); }
16 </style>
17 </head>
18 <body>
19 <p id="one">This text should be the same color (a shade of gray) as the line below.</p>
20 <p id="two">This text should be the same color (a shade of gray) as the line above.</p>
21 </body>
22 </html>