tor-browser

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

shape-image-threshold-computed.html (970B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Shapes Module Level 1: getComputedStyle().shapeImageThreshold</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-shapes/#shape-image-threshold-property">
      7 <meta name="assert" content="shape-image-threshold computed value is as specified, clamped to [0,1].">
      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("shape-image-threshold", "-7", "0");
     16 test_computed_value("shape-image-threshold", "0.5");
     17 test_computed_value("shape-image-threshold", "12.5", "1");
     18 
     19 // https://github.com/w3c/csswg-drafts/issues/4102
     20 test_computed_value("shape-image-threshold", "-100%", "0");
     21 test_computed_value("shape-image-threshold", "50%", "0.5");
     22 test_computed_value("shape-image-threshold", "300%", "1");
     23 </script>
     24 </body>
     25 </html>