tor-browser

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

clip-path-animation-incompatible-shapes2.html (1376B)


      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-incompatible-shapes2-ref.html">
      5 <meta name=fuzzy content="0-255;0-300">
      6 <style>
      7 .container {
      8  width: 300px;
      9  height: 300px;
     10  background-color: green;
     11  /* Use a long animation that start at 60% progress where the slope of the
     12     selected timing function is zero. By setting up the animation in this way,
     13     we accommodate lengthy delays in running the test without a potential drift
     14     in the animated property value. This is important for avoiding flakes,
     15     especially on debug builds. The screenshots are taken as soon as the
     16     animation is ready, thus the long animation duration has no bearing on
     17     the actual duration of the test. */
     18  animation: clippath 1000000s cubic-bezier(0,1,1,0) -600000s;
     19 }
     20 @keyframes clippath {
     21  0%   { clip-path: circle(50% at 50% 50%); }
     22  100% { clip-path: path('M 100 100 L 200 0 L 200 200 L 0 120 z'); }
     23 }
     24 </style>
     25 <script src="/common/reftest-wait.js"></script>
     26 <body>
     27 <div class="container"></div>
     28 
     29 <script>
     30 // This test ensures that when selected keyframe shapes are incompatible
     31 // and progress >= 0.5, "to" keyframe is selected as a result.
     32 document.getAnimations()[0].ready.then(() => {
     33  takeScreenshot();
     34 });
     35 </script>
     36 </body>
     37 </html>