tor-browser

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

svglength-animation-invalid-value-7.html (1054B)


      1 <!doctype html>
      2 <title>Test SVGLength animation with invalid value: No spaces between number and unit in from attribute.</title>
      3 <link rel="help" href="https://www.w3.org/TR/2001/REC-smil-animation-20010904/#FromAttribute">
      4 <link rel="help" href="https://www.w3.org/TR/2001/REC-smil-animation-20010904/#ByAttribute">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 
      8 <svg id="svg">
      9    <rect id="rect" x="0" width="100" height="100" fill="green">
     10        <animate attributeName="width" begin="0s" dur="4s" from="10   px" by="200px" />
     11    </rect>
     12 </svg>
     13 
     14 <script>
     15 
     16 async_test(t => {
     17    const svg = document.getElementById("svg");
     18    const rect = document.getElementById("rect");
     19 
     20    window.addEventListener('load', t.step_func(() => {
     21        svg.setCurrentTime(2);
     22 
     23        requestAnimationFrame(t.step_func_done(() => {
     24          assert_equals(rect.width.baseVal.value, 100);
     25          assert_equals(rect.width.animVal.value, rect.width.baseVal.value);
     26        }));
     27    }));
     28  });
     29 
     30 </script>