tor-browser

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

font-size-relative-across-calc-ff-bug-001.html (957B)


      1 <!doctype html>
      2 <link rel="help" href="https://drafts.csswg.org/css-fonts-4/#font-size-prop">
      3 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1572738">
      4 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1572451">
      5 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
      6 <script type="text/javascript" src="/resources/testharness.js"></script>
      7 <script type="text/javascript" src="/resources/testharnessreport.js"></script>
      8 <div style="font-family: something-non-default; font-size: calc(-100em + 1px);"></div>
      9 <div style="font-family: something-non-default; font-size: calc(1em - 100px);"></div>
     10 <script>
     11 test(function() {
     12  for (const element of document.querySelectorAll("div"))
     13    assert_equals(getComputedStyle(element).fontSize, "0px");
     14 }, "font-size computation isn't messed up when mixing positive and negatives when font-family changes and the parent has a keyword font-size");
     15 </script>