tor-browser

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

line-height-091.xht (1517B)


      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 using percentages with a minimum plus one value, 1%</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="96dpi ahem" />
      9         <meta name="assert" content="The 'line-height' property sets a minimum plus one length value in percentages." />
     10         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     11         <style type="text/css">
     12             div
     13             {
     14                 font: 20px/1 Ahem;
     15                 position: relative;
     16                 width: 1em;
     17             }
     18             #div2, #div3
     19             {
     20                 background: black;
     21             }
     22             #div2
     23             {
     24                 line-height: 1%;
     25             }
     26             #div3
     27             {
     28                 height: 1em;
     29                 left: 1.1em;
     30                 position: absolute;
     31                 top: -0.5em;
     32             }
     33         </style>
     34     </head>
     35     <body>
     36         <p>Test passes if the two boxes below are the same height.</p>
     37         <div id="div1">
     38             <div id="div2">X X</div>
     39             <div id="div3"></div>
     40         </div>
     41     </body>
     42 </html>