tor-browser

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

font-language-override-valid.html (1211B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Fonts Module Level 4: parsing font-language-override with valid values</title>
      6 <link rel="help" href="https://www.w3.org/TR/css-fonts-4/#propdef-font-language-override">
      7 <meta name="assert" content="font-language-override supports the full grammar 'normal | <string>'.">
      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-language-override', 'normal');
     15 test_valid_value('font-language-override', '"KSW"');
     16 test_valid_value('font-language-override', '"APPH"');
     17 test_valid_value('font-language-override', '"ENG "', '"ENG"');  // Shortest serialization strips trailing spaces.
     18 test_valid_value('font-language-override', '"ksw"');  // Will not match the registered (uppercase) tag, but valid grammar.
     19 test_valid_value('font-language-override', '"tr"');
     20 test_valid_value('font-language-override', '"en  "', '"en"');
     21 test_valid_value('font-language-override', '" en "', '" en"');  // Leading space is not trimmed
     22 test_valid_value('font-language-override', '"1 %"');
     23 </script>
     24 </body>
     25 </html>