tor-browser

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

numbers-units-011.xht (1449B)


      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: Em size with font-size set to em</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
      7         <link rel="help" href="https://www.w3.org/TR/css-values-3/#font-relative-lengths" />
      8         <link rel="match" href="numbers-units-011-ref.xht"/>
      9         <meta name="flags" content="ahem" />
     10         <meta name="assert" content="When 'em' is assigned in the value of the 'font-size' property itself, it uses the font size of the parent element." />
     11         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     12         <style type="text/css">
     13             #div1
     14             {
     15                 font-size: 3em;
     16             }
     17             #test
     18             {
     19                 background: black;
     20                 height: 1em;
     21                 width: 1em;
     22             }
     23             div
     24             {
     25                 font-family: Ahem;
     26                 margin-top: 10px;
     27                 line-height: 1;
     28             }
     29         </style>
     30     </head>
     31     <body>
     32         <p>Test passes if the two boxes below are the same size.</p>
     33         <div id="div1">
     34             <div id="test"></div>
     35             <div>X</div>
     36         </div>
     37     </body>
     38 </html>