tor-browser

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

text-spacing-invalid.html (836B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Text Module Test: parsing text-spacing with invalid values</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-text-4/#text-spacing-property">
      7 <script src="/resources/testharness.js"></script>
      8 <script src="/resources/testharnessreport.js"></script>
      9 <script src="/css/support/parsing-testcommon.js"></script>
     10 </head>
     11 <body>
     12 <script>
     13 // These keywords must appear alone.
     14 for (const keyword of ['none', 'auto']) {
     15  test_invalid_value("text-spacing", `${keyword} ${keyword}`);
     16  for (const keyword2 of ['no-autospace', 'space-first']) {
     17    test_invalid_value("text-spacing", `${keyword} ${keyword2}`);
     18    test_invalid_value("text-spacing", `${keyword2} ${keyword}`);
     19  }
     20 }
     21 test_invalid_value("text-spacing", `normal normal no-autospace`);
     22 </script>
     23 </body>
     24 </html>