layout/reftests/svg/pattern-live-01a.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.

michael@0 1 <svg xmlns="http://www.w3.org/2000/svg"
michael@0 2 xmlns:xlink="http://www.w3.org/1999/xlink"
michael@0 3 class="reftest-wait">
michael@0 4
michael@0 5 <script type="application/javascript">
michael@0 6 document.addEventListener("MozReftestInvalidate", doTest, false);
michael@0 7
michael@0 8 function doTest() {
michael@0 9 document.getElementById('pat1').removeChild(document.getElementById('red'));
michael@0 10 document.documentElement.removeAttribute('class');
michael@0 11 }
michael@0 12
michael@0 13 </script>
michael@0 14
michael@0 15 <!-- Tests that patterns are live to element removal. -->
michael@0 16
michael@0 17 <pattern patternUnits="userSpaceOnUse" id="pat1" width="20" height="20">
michael@0 18 <rect x="10" y="10" width="10" height="10" fill="green" id="green" />
michael@0 19 <rect x="5" y="5" width="10" height="10" fill="red" id="red" />
michael@0 20 </pattern>
michael@0 21
michael@0 22 <rect x="25" y="25" width="430" height="60" stroke="black" fill="url(#pat1)" />
michael@0 23
michael@0 24 </svg>

mercurial