Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
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>
16 <defs>
17 <filter id="f1" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox"
18 x="0" y="0" width="1" height="1">
20 <feImage id="feImage"
21 xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAAXNSR0IArs4c6QAAAAxJREFUCNdj+M/AAAADAQEAGN2NsAAAAABJRU5ErkJggg"
22 x="0" y="0" width="100%" height="100%"
23 style="color-interpolation-filters:sRGB"/>
24 </filter>
25 </defs>
26 <rect width="100%" height="100%" fill="lime"/>
27 <rect width="100%" height="100%" filter="url(#f1)"/>
28 </svg>