layout/reftests/svg/dynamic-pattern-02.svg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/dynamic-pattern-02.svg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,29 @@
     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" version="1.1" class="reftest-wait"
     1.9 +     xmlns:xlink="http://www.w3.org/1999/xlink">
    1.10 +  <title>Testing that href changes are live</title>
    1.11 +  <defs>
    1.12 +    <pattern id="r1" width="100%" height="100%" patternUnits="userSpaceOnUse">
    1.13 +    </pattern>
    1.14 +  </defs>
    1.15 +  <defs>
    1.16 +    <pattern id="r2">
    1.17 +      <rect width="100%" height="100%" fill="lime"/>
    1.18 +    </pattern>
    1.19 +  </defs>
    1.20 + 
    1.21 +  <rect id="u1" width="100%" height="100%" fill="url(#r1)"/>
    1.22 +
    1.23 +  <script>
    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 +    document.getElementById("r1").setAttributeNS("http://www.w3.org/1999/xlink", "href", "#r2");
    1.29 +    document.documentElement.removeAttribute("class");
    1.30 +  }
    1.31 +  </script>
    1.32 +</svg>

mercurial