color-144

Color set to white

WeasyPrint

This browser

Flags
ahem
Assertion
The 'color' set to 'white' 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 white</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 'white' renders the correct foreground color of an element's text content.">
10         <style type="text/css">
11             body
12             {
13                 background-color: black;
14             }
15             p
16             {
17                 color: white;
18             }
19             div
20             {
21                 height: 1in;
22                 width: 1in;
23             }
24             #test
25             {
26                 color: white;
27                 font: 1in Ahem;
28             }
29             #reference
30             {
31                 background-color: white;
32                 margin-top: 10px;
33             }
34         </style>
35     </head>
36     <body>
37         <p>Test passes if the boxes below are the same color.</p>
38         <div id="test">X</div>
39         <div id="reference"></div>
40     </body>
41 </html>