tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

line-height-bleed-001.xht (1218B)


      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 line box</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-001-ref.xht" />
      9 
     10         <meta name="assert" content="Glyphs bleed out of the box when 'line-height' is less than the content height and the height of the box is not increased." />
     11         <style type="text/css">
     12             #div1
     13             {
     14                 font: 1in/1em serif;
     15                 margin-top: 1in;
     16             }
     17             div div
     18             {
     19                 background: red;
     20                 line-height: 0;
     21             }
     22         </style>
     23     </head>
     24     <body>
     25         <p>Test passes if "Filler Text" is completely visible without any clipping and if there is no red.</p>
     26         <div id="div1">
     27             <div>Filler Text</div>
     28         </div>
     29     </body>
     30 </html>