line-height-bleed-002.xht (1376B)
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: Glyphs overflow when line height of container is less than content 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 <link rel="match" href="line-height-bleed-002-ref.xht" /> 9 10 <meta name="flags" content="ahem" /> 11 <meta name="assert" content="That glyphs bleed out of the box when 'line-height' can overlap adjoining line boxes." /> 12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 13 <style type="text/css"> 14 div 15 { 16 color: green; 17 font: 100px/1em Ahem; 18 line-height: 0; 19 margin-top: 100px; 20 width: 100px; 21 } 22 div:first-letter 23 { 24 color: red; 25 } 26 </style> 27 </head> 28 <body> 29 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 30 <div> 31 <span>X X</span> 32 </div> 33 </body> 34 </html>