tor-browser

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

rule-edge-interior-inset-computed.html (1334B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>CSS Gaps: rule-inset shorthands getComputedStyle()</title>
      6  <link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
      7  <link rel="help" href="https://drafts.csswg.org/css-gaps-1/#inset">
      8  <script src="/resources/testharness.js"></script>
      9  <script src="/resources/testharnessreport.js"></script>
     10  <script src="/css/support/computed-testcommon.js"></script>
     11  <script src="/css/support/inheritance-testcommon.js"></script>
     12 </head>
     13 <body>
     14  <div id="target"></div>
     15  <style>
     16    #target {
     17      font-size: 40px;
     18    }
     19  </style>
     20  <script>
     21    const properties = ["column-rule-edge-inset", "row-rule-edge-inset", "rule-edge-inset",
     22                        "column-rule-interior-inset", "row-rule-interior-inset", "rule-interior-inset"];
     23    for (const property of properties) {
     24      test_computed_value(property, "10px", "10px");
     25      test_computed_value(property, "-20px 10px", "-20px 10px");
     26      test_computed_value(property, "calc(10px + 0.5em)", "30px");
     27      test_computed_value(property, "calc(10px - 0.5em)", "-10px");
     28      test_computed_value(property, "30%", "30%");
     29      test_computed_value(property, "calc(25% + 10px)", "calc(25% + 10px)");
     30      test_computed_value(property, "10px 20px");
     31    }
     32  </script>
     33 </body>
     34 </html>