tor-browser

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

zero-font-size-adjust-no-glyphs-font.html (631B)


      1 <!DOCTYPE html>
      2 <title>Verify effect of font-size-adjust: 0 on a SVG Font without glyphs</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-fonts-5/#font-size-adjust-prop">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <style>
      7  pre { font-size-adjust: 0; font-family: CustomMonospace }
      8 </style>
      9 <svg>
     10  <font>
     11    <font-face font-family="CustomMonospace"/>
     12  </font>
     13 </svg>
     14 <pre id="pre">Text
     15 </pre>
     16 <script>
     17  test((t) => {
     18    assert_equals(pre.getBoundingClientRect().height, 0);
     19  }, "Verify effect of font-size-adjust: 0 on no glyphs SVG Font");
     20 </script>