tor-browser

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

line-height-034.xht (2159B)


      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 centimeters with a minimum minus one value, -1cm</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 invalid should" />
     10         <meta name="assert" content="The 'line-height' property sets a minimum minus one length value in centimeters." />
     11         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     12         <style type="text/css">
     13             div
     14             {
     15                 font: 1in Ahem;
     16                 position: relative;
     17                 width: 1em;
     18             }
     19             #div2, #div3, #div4
     20             {
     21                 position: absolute;
     22                 top: 0;
     23             }
     24             #div2, #div4
     25             {
     26                 background: black;
     27             }
     28             #div2
     29             {
     30                 height: 1.2em;
     31                 left: 0;
     32             }
     33             #div3
     34             {
     35                 background: blue;
     36                 color: blue;
     37                 left: 1em;
     38                 line-height: -1cm;
     39             }
     40             #div4
     41             {
     42                 height: 1em;
     43                 left: 2em;
     44             }
     45         </style>
     46     </head>
     47     <body>
     48         <p>Test passes if the height of the blue box is similar to the height of the black boxes. It is acceptable to have the blue box height be shorter or taller than the height of either of the black boxes. The black boxes represent the recommended settings for 'line-height'.</p>
     49         <div id="div1">
     50             <div id="div2"></div>
     51             <div id="div3">X</div>
     52             <div id="div4"></div>
     53         </div>
     54     </body>
     55 </html>