dynamic-feImage-01.svg 1.1 KB

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0"?>
  2. <!--
  3. Any copyright is dedicated to the Public Domain.
  4. http://creativecommons.org/publicdomain/zero/1.0/
  5. -->
  6. <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="m();">
  7. <title>Testcase for dynamic feImage changes</title>
  8. <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=455226 -->
  9. <script>
  10. function m() {
  11. var xlinkNS = "http://www.w3.org/1999/xlink";
  12. document.getElementById("feImage").removeAttributeNS(xlinkNS, "href");
  13. }
  14. </script>
  15. <defs>
  16. <filter id="f1" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox"
  17. x="0" y="0" width="1" height="1">
  18. <feImage id="feImage"
  19. xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAAXNSR0IArs4c6QAAAAxJREFUCNdj+M/AAAADAQEAGN2NsAAAAABJRU5ErkJggg"
  20. x="0" y="0" width="100%" height="100%"
  21. style="color-interpolation-filters:sRGB"/>
  22. </filter>
  23. </defs>
  24. <rect width="100%" height="100%" fill="lime"/>
  25. <rect width="100%" height="100%" filter="url(#f1)"/>
  26. </svg>