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

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <!--
     2      Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="reftest-wait"
     6      xmlns:xlink="http://www.w3.org/1999/xlink">
     7   <title>Testing that href changes are live</title>
     8   <defs>
     9     <pattern id="r1" width="100%" height="100%" patternUnits="userSpaceOnUse">
    10     </pattern>
    11   </defs>
    12   <defs>
    13     <pattern id="r2">
    14       <rect width="100%" height="100%" fill="lime"/>
    15     </pattern>
    16   </defs>
    18   <rect id="u1" width="100%" height="100%" fill="url(#r1)"/>
    20   <script>
    21   document.addEventListener("MozReftestInvalidate", doTest, false);
    22   setTimeout(doTest, 4000); // fallback for running outside reftest
    24   function doTest() {
    25     document.getElementById("r1").setAttributeNS("http://www.w3.org/1999/xlink", "href", "#r2");
    26     document.documentElement.removeAttribute("class");
    27   }
    28   </script>
    29 </svg>

mercurial