c526-font-sz-003

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>
 3  <head>
 4   <title>CSS Test: font-size</title>
 5   <meta name="flags" content="ahem">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#font-size">
 7   <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
 8   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 9   <style type="text/css">
10    .j { font-size: 3em; color: navy; font-family: Ahem; }
11    .a { font-size: 1em; }
12    .b { font-size: 1em; font-size: -0.5in; }
13    .j p { margin: 10px 30px; }
14   </style>
15   <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-size-props" title="15.7 Font size: the 'font-size' property">
16  </head>
17  <body>
18   <p>The two boxes below should be the same size.</p>
19   <div class="j">
20    <p class="a"> x </p>
21    <p class="b"> x </p>
22   </div>
23  </body>
24 </html>