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-size 'em' unit value referring to parent</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#font-size-props">
7 <meta name="flags" content="ahem">
8 <meta name="assert" content="The 'em' unit refers to the computed font size of the parent element instead of the current element.">
9 <style type="text/css">
10 div
11 {
12 font-size: 18px;
13 }
14 span
15 {
16 font-family: Ahem;
17 }
18 #span1
19 {
20 font-size: 27px;
21 }
22 #span2
23 {
24 font-size: 1.5em;
25 }
26 </style>
27 </head>
28 <body>
29 <p>Test passes if there is a single box below and the top edge is not jagged.</p>
30 <div>
31 <span id="span1">X</span><span id="span2">X</span>
32 </div>
33 </body>
34 </html>