pattern-live-01a.svg 782 B

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