tor-browser

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

clip-path-animation-font-size-mixed-change.html (1353B)


      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-font-size-ref.html">
      5 <style>
      6  .container {
      7    width: 100px;
      8    height: 100px;
      9    font-size: 10px;
     10    background-color: green;
     11    /* Use a long animation that start at 50% 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 20s steps(2, jump-end) -9.999999s;
     19  }
     20 
     21  @keyframes clippath {
     22    0% {
     23      clip-path: circle(20px);
     24    }
     25 
     26    100% {
     27      clip-path: circle(2em);
     28    }
     29  }
     30 </style>
     31 <script src="/common/reftest-wait.js"></script>
     32 
     33 <body>
     34  <div id="target" class="container"></div>
     35 
     36  <script>
     37    document.getAnimations()[0].ready.then(() => {
     38      document.getElementById('target').style.fontSize = "20px";
     39      window.requestAnimationFrame(() => {
     40        takeScreenshot();
     41      })
     42    });
     43  </script>
     44 </body>
     45 
     46 </html>