tor-browser

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

line-height-normal-recommendation-001.xht (1974B)


      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 recommended 'normal' value</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 should" />
      9         <meta name="assert" content="It is recommended that the 'normal' value for 'line-height' is set to 1.0 or 1.2 'em' units." />
     10         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     11         <style type="text/css">
     12             div
     13             {
     14                 font: 1in Ahem;
     15             }
     16             #div1
     17             {
     18                 position: relative;
     19             }
     20             div div
     21             {
     22                 position: absolute;
     23                 top: 0;
     24             }
     25             #div2
     26             {
     27                 height: 1em;
     28                 left: 0;
     29                 width: 1in;
     30             }
     31             #div3
     32             {
     33                 background: blue;
     34                 display: block;
     35                 left: 1in;
     36                 position: absolute;
     37                 width: 1in;
     38             }
     39             #div4
     40             {
     41                 height: 1.2em;
     42                 left: 2in;
     43                 width: 1in;
     44             }
     45             #div2, #div4
     46             {
     47                 background: orange;
     48             }
     49         </style>
     50     </head>
     51     <body>
     52         <p>Test passes if there is a blue box below. It is recommended that the blue box is the same height as one of the orange boxes but it is not required.</p>
     53         <div id="div1">
     54             <div id="div2"></div>
     55             <div id="div3">&nbsp;</div>
     56             <div id="div4"></div>
     57         </div>
     58     </body>
     59 </html>