tor-browser

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

line-box-height-001.xht (1554B)


      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: Height for inline elements when 'line-height' is smaller than '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="ahem" />
      9         <meta name="assert" content="The 'line-height' property sets the initial height but that height is increased if the content height is larger." />
     10         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     11         <style type="text/css">
     12             #div1
     13             {
     14                 color: blue;
     15                 font: 100px/1 Ahem;
     16                 position: relative;
     17             }
     18             span
     19             {
     20                 line-height: 0;
     21             }
     22             #div2
     23             {
     24                 background: orange;
     25                 height: 200px;
     26                 left: 100px;
     27                 position: absolute;
     28                 top: 0;
     29                 width: 100px;
     30             }
     31         </style>
     32     </head>
     33     <body>
     34         <p>Test passes if the blue and orange rectangle have the same height.</p>
     35         <div id="div1">
     36             <div>X</div>
     37             <span>X</span>
     38             <div id="div2"></div>
     39         </div>
     40     </body>
     41 </html>