OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script> | 3 <script> |
4 onload = function() { | 4 onload = function() { |
5 document.getElementById("feImage").setAttributeNS('http://www.w3.org/199
9/xlink', 'xlink:href', '#svgRoot') | 5 document.getElementById("feImage").setAttributeNS('http://www.w3.org/199
9/xlink', 'xlink:href', '#svgRoot') |
6 } | 6 } |
7 </script> | 7 </script> |
8 </head> | 8 </head> |
9 <body> | 9 <body> |
10 <p>PASS if no crash</p> | 10 <p>PASS if no crash</p> |
11 <svg width="10" height="10" id="svgRoot" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"> | 11 <svg width="10" height="10" id="svgRoot" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"> |
12 <g> | 12 <g> |
13 <defs> | 13 <defs> |
14 <filter id="imageFilter"> | 14 <filter id="imageFilter"> |
15 <feImage id="feImage" /> | 15 <feImage id="feImage" /> |
16 <feOffset dx="50" dy="50" /> | 16 <feOffset dx="50" dy="50" /> |
17 </filter> | 17 </filter> |
18 </defs> | 18 </defs> |
19 <rect filter="url(#imageFilter)" x="0" y="0" width="50" height="50" fill
="green" /> | 19 <rect filter="url(#imageFilter)" x="0" y="0" width="50" height="50" fill
="green" /> |
20 </g> | 20 </g> |
21 </svg> | 21 </svg> |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |