tor-browser

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

historical.html (890B)


      1 <!doctype html>
      2 <html>
      3 <meta charset="utf-8">
      4 <title>Historical features of SVG Animation</title>
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 
      8 <svg width="100" height="100" id="test-discard">
      9  <rect x="0" y="0" width="50" height="50" fill="black" transform="translate(0, 0)">
     10    <animateTransform attributeName="transform" begin="0s" dur="0.1s" from="0, 0" to="50, 50"/>
     11    <discard begin="0.1s"/>
     12  </rect>
     13 </svg>
     14 
     15 <script>
     16 async_test(t => {
     17  const testDiscardEl = document.getElementById('test-discard');
     18  t.step_timeout(() => {
     19    for (const tag of ["rect", "animateTransform", "discard"]) {
     20      assert_not_equals(testDiscardEl.querySelector(tag), null, tag);
     21    }
     22    t.done();
     23  }, 500);
     24 }, 'discard element');
     25 
     26 test(() => {
     27  assert_equals(window.SVGDiscardElement, undefined);
     28 }, 'SVGDiscardElement');
     29 </script>