layout/reftests/svg/dynamic-use-remove-width.svg

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     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 -->
     4   <defs>
     5     <svg id="d">
     6       <rect height="50%" width="100%" fill="blue" />
     7     </svg>
     8   </defs>
    10   <use id="u" xlink:href="#d" height="100%" width="11%" />
    12   <script>
    13   function boom()
    14   {
    15     document.getElementById("u").removeAttribute("width");
    16   }
    17   window.addEventListener("load", boom, false);
    18   </script>
    20 </svg>

mercurial