tor-browser

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

clip-path-animation-polygon.html (805B)


      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: 100px;
      8    height: 100px;
      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(0% 0%, 100% 0%, 50% 100%)
     16    }
     17 
     18    100% {
     19      clip-path: polygon(20% 20%, 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 class="container"></div>
     28 
     29  <script>
     30    waitForAnimationTime(document.getAnimations()[0], 1).then(takeScreenshot);
     31  </script>
     32 </body>
     33 
     34 </html>