c44-ln-box-002

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: 20px/40px Ahem; color: white; background: red url(support/css1test44c.png) no-repeat;
11          width: 14em; padding: 0.5em 1em; border: 1em solid green; }
12    img.twoc { vertical-align: middle; width: 2em; height: 2em;
13               padding: 0.9em 0.5em 0.1em; border: solid 1em; margin: -1.5em -0.5em -1.7em; }
14   </style>
15   <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">
16  </head>
17  <body>
18   <p>There should be no red below, just the outline of an empty green box.</p>
19   <div>
20    xxxx xxxx xxxx
21    xxxx xxxx xxxx
22    xxxx 
23    <img src="support/swatch-white.png" alt="" class="twoc">
24              xxxx
25    xxxx xxxx xxxx
26    xxxx xxxx xxxx
27   </div>
28  </body>
29 </html>