1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/dynamic-use-07.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,22 @@ 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 + 1.12 + <title>Testing that dynamic changes to the text element for a given ID are reflected in 'use'</title> 1.13 + 1.14 + <rect width="100%" height="100%" fill="lime"/> 1.15 + <text id="t1" x="100" y="100" fill="lime" style="font: 16px sans-serif">hello <tspan fill="red">there</tspan></text> 1.16 + <use y="100" xlink:href="#t1"/> 1.17 + 1.18 + <script> 1.19 + function test() { 1.20 + document.getElementsByTagName("tspan")[0].style.fill = "lime"; 1.21 + document.documentElement.removeAttribute("class"); 1.22 + } 1.23 + window.addEventListener("MozReftestInvalidate", test, false); 1.24 + </script> 1.25 +</svg>