tor-browser

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

text-underline-offset-computed.html (1621B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Text Decoration Test: parsing text-underline-offset computed 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 computed value is as specified.">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="/css/support/computed-testcommon.js"></script>
     11 </head>
     12 <body>
     13 <div id="target"></div>
     14 <script>
     15 test_computed_value("text-underline-offset", "auto");
     16 test_computed_value("text-underline-offset", "calc(10px - 8px)", "2px");
     17 
     18 test_computed_value("text-underline-offset", "32px", "32px");
     19 test_computed_value("text-underline-offset", "2em", "32px");
     20 test_computed_value("text-underline-offset", "200%", "200%");
     21 
     22 test_computed_value("text-underline-offset", "calc(2em - 0px)", "32px");
     23 test_computed_value("text-underline-offset", "calc(200% - 0px)", "200%");
     24 test_computed_value("text-underline-offset", "calc(0.5em - 0px)", "8px");
     25 test_computed_value("text-underline-offset", "calc(50% - 0px)", "50%");
     26 
     27 test_computed_value("text-underline-offset", "calc(2em - 8px)", "24px");
     28 test_computed_value("text-underline-offset", "calc(2em - 0.5em)", "24px");
     29 test_computed_value("text-underline-offset", "calc(2em - 50%)", "calc(-50% + 32px)");
     30 
     31 test_computed_value("text-underline-offset", "calc(200% - 8px)");
     32 test_computed_value("text-underline-offset", "calc(200% - 0.5em)", "calc(200% - 8px)");
     33 test_computed_value("text-underline-offset", "calc(200% - 50%)", "150%");
     34 </script>
     35 </body>
     36 </html>