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 'inherit'</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 'inherit' adopts the foreground color of an element's parent container.">
10 <style type="text/css">
11 div
12 {
13 height: 1in;
14 width: 1in;
15 }
16 #wrapper
17 {
18 color: green;
19 }
20 div div
21 {
22 color: red;
23 }
24 #test
25 {
26 color: inherit;
27 font: 1in Ahem;
28 }
29 </style>
30 </head>
31 <body>
32 <p>Test passes if the box below is green.</p>
33 <div id="wrapper">
34 <div id="test">X</div>
35 </div>
36 </body>
37 </html>