tor-browser

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

clip-path-transition-allow-discrete.html (999B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <link rel="help" href="https://drafts.csswg.org/css-shapes-1/#basic-shape-interpolation">
      4 <link rel="match" href="clip-path-transition-ref.html">
      5 <style>
      6  .container {
      7    width: 100px;
      8    height: 100px;
      9    clip-path: inset(50% 50%);
     10    background-color: green;
     11    transition-property: clip-path;
     12    transition-duration: 20s;
     13    transition-timing-function: steps(2, jump-end);
     14    transition-delay: -9.95s;
     15    transition-behavior: allow-discrete;
     16  }
     17 </style>
     18 <script src="/common/reftest-wait.js"></script>
     19 <script src="/web-animations/resources/timing-utils.js"></script>
     20 
     21 <body>
     22  <div class="container" id="target"></div>
     23 
     24  <script>
     25    function update() {
     26      document.getElementById('target').style.clipPath = "circle(40% at 40% 40%)";
     27      waitForAnimationTime(document.getAnimations()[0], 50).then(takeScreenshot);
     28    }
     29    requestAnimationFrame(function () {
     30      requestAnimationFrame(update);
     31    });
     32  </script>
     33 </body>
     34 
     35 </html>