layout/reftests/svg/pattern-live-01c.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 <svg xmlns="http://www.w3.org/2000/svg" 
     2      xmlns:xlink="http://www.w3.org/1999/xlink"
     3      class="reftest-wait">
     5  <script type="application/javascript">
     6    document.addEventListener("MozReftestInvalidate", doTest, false);
     8    function doTest() {
     9      document.getElementById('redsquare').setAttribute('fill', 'green');
    10      document.documentElement.removeAttribute('class');
    11    }
    13  </script>
    15 <!-- Tests that patterns are live to fill attribute changes in elements referenced through the |use| element. -->
    17 <defs>
    18   <rect id="redsquare" x="10" y="10" width="10" height="10" fill="red" />
    19 </defs>
    21 <pattern patternUnits="userSpaceOnUse" id="pat1" width="20" height="20">
    22 	<use xlink:href="#redsquare" />
    23 </pattern>
    25 <rect x="25" y="25" width="430" height="60" stroke="black" fill="url(#pat1)" />
    27 </svg>

mercurial