tor-browser

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

text-spacing-computed.html (1589B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Text: getComputedStyle().textSpacing</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/computed-testcommon.js"></script>
     10 </head>
     11 <body>
     12 <div id="target"></div>
     13 <script>
     14 test_computed_value("text-spacing", "initial", "normal");
     15 
     16 test_computed_value("text-spacing", "normal");
     17 test_computed_value("text-spacing", "none");
     18 test_computed_value("text-spacing", "auto");
     19 
     20 // `text-autospace`.
     21 test_computed_value("text-spacing", "no-autospace");
     22 
     23 // `text-spacing-trim`.
     24 test_computed_value("text-spacing", "trim-start");
     25 test_computed_value("text-spacing", "space-all");
     26 
     27 // `text-autospace` and `text-spacing-trim`.
     28 test_computed_value("text-spacing", "normal normal", "normal");
     29 test_computed_value("text-spacing", "normal trim-start", "trim-start");
     30 test_computed_value("text-spacing", "no-autospace normal", "no-autospace");
     31 test_computed_value("text-spacing", "no-autospace space-all", "none");
     32 test_computed_value("text-spacing", "no-autospace trim-start", "trim-start no-autospace");
     33 // Test the reversed order.
     34 test_computed_value("text-spacing", "trim-start normal ", "trim-start");
     35 test_computed_value("text-spacing", "normal no-autospace", "no-autospace");
     36 test_computed_value("text-spacing", "space-all no-autospace", "none");
     37 test_computed_value("text-spacing", "trim-start no-autospace", "trim-start no-autospace");
     38 </script>
     39 </body>
     40 </html>