tor-browser

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

font-variant-alternates-parsing.html (702B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>CSS Test:  font-variant-alternates: historical-forms; parses case-insensitively</title>
      4 <link rel="author" title="Emilio Cobos Álvarez" href="emilio@crisal.io">
      5 <link rel="help" href="https://www.w3.org/TR/css-fonts-4/#font-variant-alternates-prop">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <div></div>
      9 <script>
     10 test(function() {
     11  let div = document.querySelector('div');
     12  div.style.fontVariantAlternates = "Historical-Forms";
     13  assert_equals(
     14    getComputedStyle(div).fontVariantAlternates,
     15    "historical-forms",
     16    "historical-forms is parsed case-insensitively"
     17  );
     18 });
     19 </script>