1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/dynamic-use-06.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 +<!-- 1.5 + Any copyright is dedicated to the Public Domain. 1.6 + http://creativecommons.org/publicdomain/zero/1.0/ 1.7 +--> 1.8 +<svg xmlns="http://www.w3.org/2000/svg" 1.9 + xmlns:xlink="http://www.w3.org/1999/xlink" 1.10 + class="reftest-wait"> 1.11 + <defs> 1.12 + <symbol id="sym1"> 1.13 + <rect width="100" height="100" fill="lime" /> 1.14 + </symbol> 1.15 + </defs> 1.16 + <rect width="100%" height="100%" fill="lime"/> 1.17 + <rect x="50%" width="100" height="100" fill="red" /> 1.18 + <svg id="svg" width="50%"> 1.19 + <use x="50%" xlink:href="#sym1"/> 1.20 + </svg> 1.21 + <script type="text/javascript"> 1.22 + <![CDATA[ 1.23 + 1.24 + document.addEventListener("MozReftestInvalidate", doTest, false); 1.25 + setTimeout(doTest, 4000); // fallback for running outside reftest 1.26 + 1.27 + function doTest() { 1.28 + var svg = document.getElementById("svg"); 1.29 + svg.setAttribute("width", "100%"); 1.30 + document.documentElement.removeAttribute('class'); 1.31 + } 1.32 + 1.33 + ]]> 1.34 + </script> 1.35 +</svg>