tor-browser

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

keytimes-attribute-trailing-semi.html (769B)


      1 <!doctype html>
      2 <title>A trailing semicolon is allowed in the 'keyTimes' attribute</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script src="/common/rendering-utils.js"></script>
      6 <svg>
      7  <rect width="100" height="100" fill="blue" opacity="0">
      8    <animate attributeName="opacity" dur="10ms" fill="freeze"
      9             values="0; 1" keyTimes="0; 1;"/>
     10  </rect>
     11 </svg>
     12 <script>
     13  promise_test(async t => {
     14    const animation = document.querySelector('rect > animate');
     15    const watcher = new EventWatcher(t, animation, 'endEvent');
     16    await watcher.wait_for('endEvent');
     17    await waitForAtLeastOneFrame();
     18    assert_equals(getComputedStyle(animation.targetElement).opacity, "1");
     19  });
     20 </script>