dynamic-use-remove-width.svg 490 B

123456789101112131415161718192021
  1. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  2. <!-- this is a test for https://bugzilla.mozilla.org/show_bug.cgi?id=521682 -->
  3. <defs>
  4. <svg id="d">
  5. <rect height="50%" width="100%" fill="blue" />
  6. </svg>
  7. </defs>
  8. <use id="u" xlink:href="#d" height="100%" width="11%" />
  9. <script>
  10. function boom()
  11. {
  12. document.getElementById("u").removeAttribute("width");
  13. }
  14. window.addEventListener("load", boom, false);
  15. </script>
  16. </svg>