line-height-applies-to-011.xht (1410B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Line-height applied to elements with 'display' set to 'run-in'</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="assert" content="The 'line-height' property applies to elements with 'display' set to 'run-in'." /> 9 <style type="text/css"> 10 #div1 11 { 12 position: relative; 13 } 14 #div2 15 { 16 background: blue; 17 display: run-in; 18 line-height: 2in; 19 width: 1in; 20 } 21 #div3 22 { 23 background: orange; 24 height: 2in; 25 left: 1in; 26 position: absolute; 27 top: 0; 28 width: 1in; 29 } 30 </style> 31 </head> 32 <body> 33 <p>Test passes if the blue and orange boxes below are the same height.</p> 34 <div id="div1"> 35 <div id="div2"> </div> 36 <div id="div3"></div> 37 </div> 38 </body> 39 </html>