tor-browser

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

lh-unit-001.html (818B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Values and Units Test: using lh in line-height</title>
      4 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
      5 <link rel="help" href="https://drafts.csswg.org/css-values-4/#font-relative-lengths">
      6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      7 <meta name="assert" content="The lh unit resolves against the parent when used in the line-height property.">
      8 <style>
      9 div {
     10  font-size: 50px;
     11  line-height: 1;
     12  width: 100px;
     13  height: 100px;
     14  background: red;
     15 }
     16 aside {
     17  background: green;
     18  font-size: 42px; /* number doesn't matter, as long as it's neither 100 nor 50 */
     19  line-height: 2lh;
     20 }
     21 
     22 </style>
     23 
     24 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     25 
     26 <div><aside>&nbsp;</aside></div>