tor-browser

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

lh-unit-005.html (757B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Values and Units Test: lh unit based on inherited line-height</title>
      4 <link rel="help" href="https://drafts.csswg.org/css-values-4/#font-relative-lengths">
      5 <link rel="help" href="https://crbug.com/1487480">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <style>
      9  #lh50, #lh100 {
     10    height: 1lh;
     11  }
     12 </style>
     13 <div style="line-height: 50px">
     14  <div id="lh50"></div>
     15 </div>
     16 <div style="line-height: 100px">
     17  <div id="lh100"></div>
     18 </div>
     19 <script>
     20  test(() => {
     21    assert_equals(getComputedStyle(lh50).height, "50px");
     22    assert_equals(getComputedStyle(lh100).height, "100px");
     23  }, "lh relative to line-height inherited from parent");
     24 </script>