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: Font shorthand set to 'inherit' inheriting five values</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#propdef-font">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-shorthand">
8 <meta name="flags" content="ahem">
9 <meta name="assert" content="The 'font' shorthand property set to 'inherit' inherits the parent element's values.">
10 <style type="text/css">
11 #wrapper
12 {
13 font: italic small-caps bold 1in Ahem;
14 position: relative;
15 }
16 #test
17 {
18 font: 0 Ahem;
19 font: inherit;
20 line-height: 1em;
21 position: absolute;
22 }
23 #reference
24 {
25 color: red;
26 font-family: Ahem;
27 font-size: 1in;
28 font-style: italic;
29 font-variant: small-caps;
30 font-weight: bold;
31 height: 1in;
32 left: 0;
33 line-height: 1em;
34 position: absolute;
35 top: 0;
36 width: 1in;
37 }
38 </style>
39 </head>
40 <body>
41 <p>Test passes if there is no red visible on the page except for antialiasing.</p>
42 <div id="wrapper">
43 <div id="reference">x</div>
44 <div id="test">x</div>
45 </div>
46 </body>
47 </html>