tor-browser

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

font-variation-settings-serialization-001.html (1165B)


      1 <!doctype html>
      2 <html>
      3    <head>
      4        <meta charset="utf-8">
      5        <title>CSS Test: font-variation-settings serialization</title>
      6        <link rel="author" title="Greg Whitworth" href="mailto:gwhit@microsoft.com">
      7        <link rel="help" href="http://www.w3.org/TR/css-fonts-4/#propdef-font-variation-settings">
      8        <link rel="issue" href="https://github.com/w3c/csswg-drafts/issues/1959#issuecomment-360864254">
      9        <meta name="description" content="It was decided in issue 1959 that font-variation-settings is a map, therefore duplicates should be removed">
     10        <script src="/resources/testharness.js"></script>
     11        <script src="/resources/testharnessreport.js"></script>
     12    </head>
     13    <body>
     14        <div id="test1" style='font-variation-settings: "bldA" 1, "bldA" 2'></div>
     15 
     16        <script>
     17            const test1_canEqual = ['"bldA" 2', "'bldA' 2"];
     18            test(function() {
     19                assert_in_array(getComputedStyle(document.getElementById('test1')).fontVariationSettings, test1_canEqual);
     20            }, "font-variation-settings should be serialized to not include duplicates");
     21        </script>
     22    </body>
     23 </html>