tor-browser

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

text-indent-computed.html (1452B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Text: text-indent computed values under zoom</title>
      6 <link rel="help" href="https://www.w3.org/TR/CSS22/text.html#indentation-prop">
      7 <link rel="help" href="https://drafts.csswg.org/css-text-3/#text-indent-property">
      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 style="text-indent: 2rem;">
     14  <p id="target">Test paragraph</p>
     15 </div>
     16 <script>
     17 const target = document.getElementById("target");
     18 
     19 test_computed_value("text-indent", "1px", "1px", "single value no zoom");
     20 test_computed_value("text-indent", "1rem", "16px", "rem value no zoom");
     21 test_computed_value("text-indent", "inherit", "32px", "inherit no zoom");
     22 test_computed_value("text-indent", "5px", "5px", "explicit px value no zoom");
     23 test_computed_value("text-indent", "0", "0px", "zero value no zoom");
     24 
     25 const parent = target.parentElement;
     26 parent.style.zoom = "2";
     27 
     28 test_computed_value("text-indent", "1px", "1px", "single value with zoom: 2");
     29 test_computed_value("text-indent", "1rem", "16px", "rem value with zoom: 2");
     30 test_computed_value("text-indent", "inherit", "32px", "inherit with zoom: 2");
     31 test_computed_value("text-indent", "5px", "5px", "explicit px value with zoom: 2");
     32 test_computed_value("text-indent", "0", "0px", "zero value with zoom: 2");
     33 </script>
     34 </body>
     35 </html>