tor-browser

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

line-height-047.xht (1864B)


      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 millimeters with a minimum plus one value, 1mm</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-04-04 -->
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-line-height" />
      8         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" />
      9         <meta name="flags" content="ahem" />
     10         <meta name="assert" content="The 'line-height' property sets a minimum plus one length value in millimeters." />
     11         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     12         <style type="text/css">
     13             div
     14             {
     15                 font: 20px/1 Ahem;
     16                 position: relative;
     17                 width: 1em;
     18             }
     19             #div2, #div3
     20             {
     21                 background: black;
     22             }
     23             #div2
     24             {
     25                 line-height: 1mm;
     26             }
     27             #div3
     28             {
     29                 left: 1.1em;
     30                 position: absolute;
     31                 top: -0.4em;
     32             }
     33             #div4
     34             {
     35                 height: 20px;
     36             }
     37             #div5
     38             {
     39                 height: 1mm;
     40             }
     41         </style>
     42     </head>
     43     <body>
     44         <p>Test passes if the two boxes below are the same height.</p>
     45         <div id="div1">
     46             <div id="div2">X X</div>
     47             <div id="div3">
     48                 <div id="div4"></div>
     49                 <div id="div5"></div>
     50             </div>
     51         </div>
     52     </body>
     53 </html>