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 using 'ex' units with a nominal value, 6ex</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-size">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-size-props">
8 <meta name="flags" content="ahem">
9 <meta name="assert" content="The 'font-size' property sets a nominal length value in 'ex' units.">
10 <style type="text/css">
11 div
12 {
13 font-family: Ahem;
14 font-size: 20px;
15 line-height: 1em;
16 position: relative;
17 }
18 #div2
19 {
20 background-color: red;
21 color: black;
22 font-size: 6ex;
23 width: 1in;
24 }
25 #div3
26 {
27 background-color: black;
28 height: 6ex;
29 left: 100px;
30 position: absolute;
31 top: 0;
32 width: 6ex;
33 }
34 </style>
35 </head>
36 <body>
37 <p>Test passes if the two boxes below are the same size and there is no red visible on the page.</p>
38 <div id="div1">
39 <div id="div2">X</div>
40 <div id="div3"></div>
41 </div>
42 </body>
43 </html>