1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html lang="en">
3 <head>
4 <title>CSS Test: Units: ex</title>
5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/units/004.html" type="text/html">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units">
8 <meta name="flags" content="ahem">
9 <style type="text/css">
10 .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
11 .test { font: 12px/1 Ahem; min-width: 200px; min-height: 200px; background: red; float: left; }
12 .em { width: 16.6667em; height: 8.33333em; background: green; }
13 .ex { width: 20.8333ex; height: 10.41667ex; background: green; }
14 </style>
15 </head>
16 <body>
17 <p>There should be a perfect green square below and no red.</p>
18 <div class="test">
19 <div class="em"></div>
20 <div class="ex"></div>
21 </div>
22 </body>
23 </html>