line-height-111.xht (1774B)
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 with keyword value of 'normal'</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="ahem should" /> 9 <meta name="assert" content="The 'line-height' property set to 'normal' uses the default line-height." /> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style type="text/css"> 12 div 13 { 14 font: 100px Ahem; 15 } 16 div div 17 { 18 background: black; 19 float: left; 20 width: 1em; 21 } 22 #test 23 { 24 background: blue; 25 color: blue; 26 line-height: normal; 27 } 28 #one 29 { 30 height: 1em; 31 } 32 #onepointtwo 33 { 34 height: 1.2em; 35 } 36 </style> 37 </head> 38 <body> 39 <p>Test passes if the height of the blue box is similar to the height of the black boxes. It is acceptable to have the blue box height be shorter or taller than the height of either of the black boxes. The black boxes represent the recommended settings for 'line-height'.</p> 40 <div> 41 <div id="onepointtwo"></div> 42 <div id="test">X</div> 43 <div id="one"></div> 44 </div> 45 </body> 46 </html>