1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/dynamic-use-remove-width.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,20 @@ 1.4 +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 1.5 +<!-- this is a test for https://bugzilla.mozilla.org/show_bug.cgi?id=521682 --> 1.6 + 1.7 + <defs> 1.8 + <svg id="d"> 1.9 + <rect height="50%" width="100%" fill="blue" /> 1.10 + </svg> 1.11 + </defs> 1.12 + 1.13 + <use id="u" xlink:href="#d" height="100%" width="11%" /> 1.14 + 1.15 + <script> 1.16 + function boom() 1.17 + { 1.18 + document.getElementById("u").removeAttribute("width"); 1.19 + } 1.20 + window.addEventListener("load", boom, false); 1.21 + </script> 1.22 + 1.23 +</svg>