tor-browser

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

font-feature-settings-valid.html (1174B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Fonts Module Level 3: parsing font-feature-settings with valid values</title>
      6 <link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-feature-settings-prop">
      7 <meta name="assert" content="font-feature-settings supports the full grammar 'normal | <feature-tag-value> #'.">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="/css/support/parsing-testcommon.js"></script>
     11 </head>
     12 <body>
     13 <script>
     14 test_valid_value('font-feature-settings', 'normal');
     15 
     16 // <feature-tag-value> = <string> [ <integer> | on | off ]?
     17 test_valid_value('font-feature-settings', '"dlig" 1', '"dlig"');
     18 test_valid_value('font-feature-settings', '"smcp" on', '"smcp"');
     19 test_valid_value('font-feature-settings', "'c2sc'", '"c2sc"');
     20 test_valid_value('font-feature-settings', '"liga" off', '"liga" 0');
     21 test_valid_value('font-feature-settings', '"tnum", \'hist\'', '"tnum", "hist"');
     22 
     23 test_valid_value('font-feature-settings', '"PKRN"');
     24 
     25 test_valid_value('font-feature-settings', '"dlig" 1, "smcp" on, "dlig" 0', '"dlig", "smcp", "dlig" 0');
     26 </script>
     27 </body>
     28 </html>