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 six 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/1em Ahem;
14 position: relative;
15 }
16 #test
17 {
18 font: 0 Ahem;
19 font: inherit;
20 position: absolute;
21 }
22 #reference
23 {
24 color: red;
25 font-family: Ahem;
26 font-size: 1in;
27 font-style: italic;
28 font-variant: small-caps;
29 font-weight: bold;
30 height: 1in;
31 left: 0;
32 line-height: 1em;
33 position: absolute;
34 top: 0;
35 width: 1in;
36 }
37 </style>
38 </head>
39 <body>
40 <p>Test passes if there is no red visible on the page except for antialiasing.</p>
41 <div id="wrapper">
42 <div id="reference">x</div>
43 <div id="test">x</div>
44 </div>
45 </body>
46 </html>