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/css1test44a.png) no-repeat;
11 width: 19em; padding: 0.5em 1em; border: 1em solid green; }
12 img.onea, img.oneb { width: 4em; height: 4em; }
13 img.onea { vertical-align: text-bottom; }
14 img.oneb { 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
22 xxxx xxxx xxxx xxxx
23 <img src="support/swatch-white.png" alt="" class="onea">
24 xxxx
25 <img src="support/swatch-white.png" alt="" class="oneb">
26 xxxx
27 xxxx xxxx xxxx xxxx
28 </div>
29 </body>
30 </html>