color-026

Color set to hex with three digits with the minimum plus one value, #111

WeasyPrint

This browser

Flags
ahem
Assertion
The 'color' set to '#111' 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 three digits with the minimum plus one value, #111</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">
 9         <meta name="assert" content="The 'color' set to '#111' renders the correct foreground color of an element's text content.">
10         <style type="text/css">
11             div
12             {
13                 height: 1in;
14                 width: 1in;
15             }
16             #test
17             {
18                 color: #111;
19                 font: 1in Ahem;
20             }
21             #reference
22             {
23                 background-color: #111;
24                 margin-top: 10px;
25             }
26         </style>
27     </head>
28     <body>
29         <p>Test passes if the boxes below are the same color.</p>
30         <div id="test">X</div>
31         <div id="reference"></div>
32     </body>
33 </html>