color-001

Color set to hex with 5 digits which is invalid and is equivalent to minimum minus one value for 6 digit hex

WeasyPrint

This browser

Flags
ahem, invalid
Assertion
The 'color' set to '#00000' falls back to the initial value and renders the correct foreground color of an element's text content.

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 set to hex with 5 digits which is invalid and is equivalent to minimum minus one value for 6 digit hex</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#propdef-color">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#colors">
 8         <meta name="flags" content="ahem invalid">
 9         <meta name="assert" content="The 'color' set to '#00000' falls back to the initial value and renders the correct foreground color of an element's text content.">
10         <style type="text/css">
11             div
12             {
13                 color: green;
14                 height: 1in;
15                 width: 1in;
16             }
17             #test
18             {
19                 color: #00000;
20                 font: 1in Ahem;
21             }
22             #reference
23             {
24                 background-color: green;
25                 margin-top: 10px;
26             }
27         </style>
28     </head>
29     <body>
30         <p>Test passes if the boxes below are the same color.</p>
31         <div id="test">X</div>
32         <div id="reference"></div>
33     </body>
34 </html>