tor-browser

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

clip-path-animation-polygon-mixed-change.html (1007B)


      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-animation-polygon-ref.html">
      5 <style>
      6  .container {
      7    width: 50px;
      8    height: 50px;
      9    background-color: green;
     10    animation: clippath 20s steps(2, jump-end) -9.999s;
     11  }
     12 
     13  @keyframes clippath {
     14    0% {
     15      clip-path: polygon(0px 0px, 100% 0%, 50% 100%)
     16    }
     17 
     18    100% {
     19      clip-path: polygon(20px 20px, 80% 20%, 50% 80%)
     20    }
     21  }
     22 </style>
     23 <script src="/common/reftest-wait.js"></script>
     24 <script src="../../../../web-animations/resources/timing-utils.js"></script>
     25 
     26 <body>
     27  <div id="target" class="container"></div>
     28 
     29  <script>
     30    document.getAnimations()[0].ready.then(() => {
     31      document.getElementById('target').style.width = "100px";
     32      document.getElementById('target').style.height = "100px";
     33      waitForAnimationTime(document.getAnimations()[0], 1).then(takeScreenshot);
     34    });
     35  </script>
     36 </body>
     37 
     38 </html>