anim-targethref-7.svg 761 B

12345678910111213141516171819
  1. <svg xmlns="http://www.w3.org/2000/svg"
  2. xmlns:xlink="http://www.w3.org/1999/xlink"
  3. class="reftest-wait"
  4. onload="go()">
  5. <!-- This test checks our behavior with an 'xlink:href'-targeted animation
  6. when the target's ID is removed (which makes it no longer the target) -->
  7. <script xlink:href="smil-util.js" type="text/javascript"/>
  8. <script type="text/javascript">
  9. function go() {
  10. var rect = document.getElementById("blueRect");
  11. rect.removeAttributeNS(null, "id");
  12. setTimeAndSnapshot(2.5, false)
  13. }
  14. </script>
  15. <rect id="blueRect" x="15" y="15" width="200" height="200" fill="blue"/>
  16. <animate id="anim" xlink:href="#blueRect" attributeName="height"
  17. to="0" begin="0s" dur="2s" fill="freeze"/>
  18. </svg>