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 using the values font-size and font-family</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 accepts and sets font-size and font-family.">
10 <style type="text/css">
11 #wrapper
12 {
13 position: relative;
14 }
15 #test
16 {
17 font: 1in Ahem;
18 line-height: 1em;
19 }
20 #reference
21 {
22 background: black;
23 height: 1in;
24 left: 1.1in;
25 position: absolute;
26 top: 0;
27 width: 1in;
28 }
29 </style>
30 </head>
31 <body>
32 <p>Test passes if there are two boxes on the page and they are the same height.</p>
33 <div id="wrapper">
34 <div id="test">X</div>
35 <div id="reference"></div>
36 </div>
37 </body>
38 </html>