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 boxes are tall enough for all boxes</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-formatting">
7 <meta name="flags" content="ahem">
8 <meta name="assert" content="A line box is always tall enough to contain all the boxes in the line.">
9 <style type="text/css">
10 div
11 {
12 height: 25px;
13 white-space: pre;
14 }
15 span
16 {
17 background: blue;
18 font: 50px Ahem;
19 }
20 #span1
21 {
22 line-height: 50px;
23 }
24 #span2
25 {
26 line-height: 10px;
27 }
28 </style>
29 </head>
30 <body>
31 <p>Test passes if the black and blue boxes are the same height.</p>
32 <div>
33 <span id="span1"> X </span><span id="span2"> X </span>
34 </div>
35 </body>
36 </html>