tor-browser

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

short-simple-duration-and-fractional-repeatcount.html (725B)


      1 <!DOCTYPE html>
      2 <title>Short simple duration and fractional repeatCount does not hang</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <svg>
      6  <rect width="100" height="100" fill="blue">
      7    <animate attributeName="fill" from="red" to="orange"
      8             begin="-10ms" dur="0.001ms" repeatCount="0.5"/>
      9  </rect>
     10 </svg>
     11 <script>
     12  async_test(t => {
     13    onload = t.step_func(() => {
     14      requestAnimationFrame(t.step_func(() => {
     15        requestAnimationFrame(t.step_func_done(() => {
     16          let rect = document.querySelector("rect");
     17          assert_equals(getComputedStyle(rect).fill, 'rgb(0, 0, 255)');
     18        }));
     19      }));
     20    });
     21  });
     22 </script>