<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>CSS Test: First available font defines the 'ex' unit size</title> <link rel="author" title="Microsoft" href="http://www.microsoft.com/"> <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units"> <meta name="flags" content="ahem"> <meta name="assert" content="The 'ex' unit size is defined by the element's first available font."> <style type="text/css"> body { font-size: 40px; } p { font-size: 12pt; } div { background: black; font-family: invalidFont, Ahem; margin-top: 3px; } #test { height: 1ex; width: 1ex; } #compare { height: 0.8em; width: 0.8em; } </style> </head> <body> <p>Test passes if the two boxes below are the same size.</p> <div id="test"></div> <div id="compare"></div> </body> </html>