tor-browser

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

text-underline-offset-valid.html (1210B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Text Decoration Test: parsing text-underline-offset with valid values</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#underline-offset">
      7 <meta name="assert" content="text-underline-offset supports the following values: auto | <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("text-underline-offset", "auto");
     15 test_valid_value("text-underline-offset", "-10px");
     16 test_valid_value("text-underline-offset", "2001em");
     17 test_valid_value("text-underline-offset", "-49em");
     18 test_valid_value("text-underline-offset", "53px");
     19 test_valid_value("text-underline-offset", "5%");
     20 test_valid_value("text-underline-offset", "89%");
     21 test_valid_value("text-underline-offset", "-30%");
     22 test_valid_value("text-underline-offset", "187%");
     23 test_valid_value("text-underline-offset", "calc(45% - 0.3em)");
     24 test_valid_value("text-underline-offset", "calc(40em - 10px)");
     25 test_valid_value("text-underline-offset", "calc(-13em + 50px)");
     26 </script>
     27 </body>
     28 </html>