units-006

Units: px and font-size

WeasyPrint

This browser

Flags
ahem

Source

 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: px and font-size</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/006.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    div { margin: 1px; }
12    .border { border-top: solid 20px blue; width: 600px; }
13    .font { font: 20px/1 Ahem; color: blue; }
14   </style>
15  </head>
16  <body>
17   <div class="control">Ahem_font_required_for_this_test.</div>
18 
19   <p>The two bars below should be exactly the same length.</p>
20 
21   <div class="border"></div>
22   <div class="font">xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</div>
23 
24  </body>
25 </html>