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