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: First available font defines the 'ex' unit size</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units">
7 <meta name="flags" content="ahem">
8 <meta name="assert" content="The 'ex' unit size is defined by the element's first available font.">
9 <style type="text/css">
10 body
11 {
12 font-size: 40px;
13 }
14 p
15 {
16 font-size: 12pt;
17 }
18 div
19 {
20 background: black;
21 font-family: invalidFont, Ahem;
22 margin-top: 3px;
23 }
24 #test
25 {
26 height: 1ex;
27 width: 1ex;
28 }
29 #compare
30 {
31 height: 0.8em;
32 width: 0.8em;
33 }
34 </style>
35 </head>
36 <body>
37 <p>Test passes if the two boxes below are the same size.</p>
38 <div id="test"></div>
39 <div id="compare"></div>
40 </body>
41 </html>