tor-browser

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

shape-margin-computed.html (777B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Shapes Module Level 1: getComputedStyle().shapeMargin</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-shapes/#shape-margin-property">
      7 <meta name="assert" content="shape-margin computed value is non-negative <length-percentage>.">
      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 <style>
     14  #target {
     15    font-size: 40px;
     16  }
     17 </style>
     18 <div id="target"></div>
     19 <script>
     20 test_computed_value("shape-margin", "calc(10px + 0.5em)", "30px");
     21 test_computed_value("shape-margin", "calc(10px - 0.5em)", "0px");
     22 test_computed_value("shape-margin", "50%");
     23 </script>
     24 </body>
     25 </html>