c63-color-000

Color Units

WeasyPrint

This browser

Flags
ahem, image

Source

 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: Color Units</title>
 5   <meta name="flags" content="ahem image">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#color-units">
 7   <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
 8   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 9   <style type="text/css">
10    body {color: blue;}
11    span {vertical-align: bottom; font: 15px/1 Ahem;}
12    img {vertical-align: bottom; color: red;}
13    .one {color: #0f0;}
14    .two {color: #00ff00;}
15    .three {color: rgb(0,255,0);}
16    .four {color: rgb(0%,100%,0%);}
17    .five {color: rgb(0.0%,100.0%,0.0%);}
18    .six {color: lime;}
19    .seven {color: invalidValue;}
20    .eight {color: rgb(1280,165,0);}
21    .nine {color: rgb(255,165,0);}
22    .ten {color: rgb(100%,64.7%,-500%);}
23    .eleven {color: rgb(100%,64.7%,0%);}
24   </style>
25   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#color-units" title="4.3.6 Colors">
26  </head>
27  <body>
28   <p>There should be three solid bars of colour below, each longer than the last, each of the colour specified.</p>
29   <div>
30    Blue: <span>X</span><span class="seven">X</span><img src="support/swatch-blue.png" alt="FAIL">
31   </div>
32   <div>
33    Orange: <span class="eight">X</span><span class="nine">X</span><span class="ten">X</span><span class="eleven">X</span><img src="support/swatch-orange.png" alt="FAIL">
34   </div>
35   <div>
36    Lime: <span class="one">X</span><span class="two">X</span><span class="three">X</span><span class="four">X</span><span class="five">X</span><span class="six">X</span><span style="color: #0f0;">X</span><span style="color: #00ff00;">X</span><span style="color: rgb(0,255,0);">X</span><span style="color: rgb(0%,100%,0%);">X</span><span style="color: rgb(0.0%,100.0%,0.0%);">X</span><span style="color: lime;">X</span><img src="support/swatch-lime.png" alt="FAIL">
37   </div>
38  </body>
39 </html>