<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>DOM CSS: Computed Values of 'font-size' when minimum font sizes are involved</title>
  <style type="text/css">
   #test { font-size: 1px; }
  </style>
 </head>
 <body>
  <p>The computed font-size of an element given a size of 1px is
  <span id="console"/>. The result of this test is therefore a <strong
  id="result"/>.</p>
  <div id="test"/>
  <script type="text/javascript">
   <![CDATA[
    var element = document.getElementById('test');
    var result = document.defaultView.getComputedStyle(element, '').getPropertyValue('font-size');
    document.getElementById('console').appendChild(document.createTextNode(result));
    document.getElementById('result').appendChild(document.createTextNode(result == '1px' ? 'PASS' : 'FAIL'));
   ]]>
  </script>
  <p>Note: Please set a minimum font size of around 10 pixels to get a
  reliable result.</p>
 </body>
</html>
