c548-ln-ht-002

line-height

WeasyPrint

This browser

Flags
ahem, image

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: line-height</title>
 5   <meta name="flags" content="ahem image">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#line-height">
 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    div { font: 12px Ahem; background: red url(support/pattern-gg-gr.png); color: lime; width: 4em; padding: 0.5em 0 0.5em 1em; border: solid black; margin: 0.5em; }
11    p { margin: 0; }
12    .eight  {line-height: 200%;}
13    .nine {line-height: 2;}
14    .ten {line-height: 24px;}
15    .eleven {line-height: -1em; line-height: 2em; line-height: -1em;}
16    .seven {line-height: 2.5ex;}
17   </style>
18   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" title="10.8.1 Leading and half-leading">
19  </head>
20  <body>
21   <p>There should be a big pattern of green and lime dots below, with no red present.</p>
22   <div>
23    <p class="eight"> X X X X </p>
24    <p class="nine"> X X X X </p>
25    <p class="ten"> X X X X </p>
26    <p class="eleven"> X X X X </p>
27    <p class="seven"> X X X X </p> <!-- ex comes last because it is the least likely to be supported -->
28   </div>
29  </body>
30 </html>