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: Height for inline replaced elements and 'line-height'</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-line-height">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading">
8 <meta name="flags" content="image">
9 <meta name="assert" content="The 'line-height' property doe not set the height for inline replaced elements. The height of the replaced element sets the line-height'.">
10 <style type="text/css">
11 #div1
12 {
13 position: relative;
14 }
15 img
16 {
17 display: inline;
18 line-height: 2in;
19 }
20 div div
21 {
22 background: orange;
23 height: 96px;
24 left: 1in;
25 position: absolute;
26 top: 0;
27 width: 96px;
28 }
29 </style>
30 </head>
31 <body>
32 <p>Test passes if the blue and orange boxes below are the same height.</p>
33 <div id="div1">
34 <img alt="blue 96x96" src="support/blue96x96.png">
35 <div></div>
36 </div>
37 </body>
38 </html>