c44-ln-box-001

The Height of Lines

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: The Height of Lines</title>
 5   <meta name="flags" content="ahem image">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#the-height-of-lines">
 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: 10px/20px Ahem; color: white; background: red url(support/css1test44b.png) no-repeat;
11          width: 39em; padding: 0.5em 1em; border: 1em solid green; }
12    img.twoa, img.twob { width: 3em; height: 3em; padding: 0.5em; border-style: solid; border-width: 1em; margin: 1.5em; }
13    img.twoa { vertical-align: text-bottom; }
14    img.twob { vertical-align: text-top; }
15   </style>
16   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#line-height" title="10.8 Line height calculations: the 'line-height' and 'vertical-align' properties">
17  </head>
18  <body>
19   <p>There should be no red below, just the outline of an empty green box.</p>
20   <div>
21    xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx
22    xxxx
23    <img src="support/swatch-white.png" alt="" class="twoa">
24                   xxxx xxxx
25    <img src="support/swatch-white.png" alt="" class="twob">
26                                       xxxx
27    xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx
28   </div>
29  </body>
30 </html>