tor-browser

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

two-clip-path-animation-diff-length2.html (1177B)


      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="two-clip-path-animation-diff-length2-ref.html">
      5 <style>
      6  .container {
      7    width: 100px;
      8    height: 100px;
      9    background-color: green;
     10    animation: clippath2 100s step-end, clippath1 20s 30s;
     11  }
     12 
     13  @keyframes clippath1 {
     14    0% {
     15      clip-path: circle(10% at 50% 50%);
     16    }
     17 
     18    100% {
     19      clip-path: circle(50% at 50% 50%);
     20    }
     21  }
     22 
     23  @keyframes clippath2 {
     24    0% {
     25      clip-path: inset(10px 10px);
     26    }
     27 
     28    100% {
     29      clip-path: inset(11px 11px);
     30    }
     31  }
     32 </style>
     33 <script src="/common/reftest-wait.js"></script>
     34 <script src="../../../../web-animations/testcommon.js"></script>
     35 
     36 <body>
     37  <div class="container"></div>
     38 
     39  <script>
     40    // This test ensures that when there are two animations where one of them has
     41    // animation delays, we show the right clip when the delayed animation is not
     42    // started yet.
     43    const animations = document.getAnimations();
     44    Promise.all([animations[0].ready, animations[1].ready]).then(() => {
     45      takeScreenshot();
     46    });
     47  </script>
     48 </body>
     49 
     50 </html>