tor-browser

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

rule-interior-start-end-inset-computed.html (1409B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <meta charset="utf-8">
      5    <title>CSS Gaps: *-rule-interior-*-outset 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/#outset">
      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        // TODO(javiercon): Add shorthand support and test here.
     22        const properties = ["column-rule-interior-inset-start", "row-rule-interior-inset-start", "column-rule-interior-inset-end", "row-rule-interior-inset-end"];
     23        for (const property of properties) {
     24            test_computed_value(property, "10px");
     25            test_computed_value(property, "-20px");
     26            test_computed_value(property, "0.5em", "20px");
     27            test_computed_value(property, "calc(10px + 0.5em)", "30px");
     28            test_computed_value(property, "calc(10px - 0.5em)", "-10px");
     29            test_computed_value(property, "30%");
     30            test_computed_value(property, "calc(25% + 10px)");
     31        }
     32    </script>
     33 </body>
     34 </html>