tor-browser

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

word-spacing-valid.html (995B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Text Module Test: parsing word-spacing with valid values</title>
      6 <link rel="help" href="https://www.w3.org/TR/css-text-3/#propdef-word-spacing">
      7 <meta name="assert" content="word-spacing supports the full grammar 'normal | <length-percentage>'.">
      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("word-spacing", "normal");
     15 test_valid_value("word-spacing", "0", "0px");
     16 
     17 test_valid_value("word-spacing", "10px");
     18 test_valid_value("word-spacing", "-20px");
     19 test_valid_value("word-spacing", "calc(2em + 3ex)");
     20 
     21 // Level 4 adds percentages
     22 test_valid_value("word-spacing", "120%");
     23 test_valid_value("word-spacing", "-10%");
     24 test_valid_value("word-spacing", "calc(2ch - 30%)", "calc(-30% + 2ch)");
     25 test_valid_value("word-spacing", "calc(40% + 50px)");
     26 </script>
     27 </body>
     28 </html>