OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script> | 3 <script> |
4 onload = function() { | 4 onload = function() { |
5 document.getElementById("svgRoot").setAttribute('filter', 'url(#imageFil
ter)') | 5 document.getElementById("svgRoot").setAttribute('filter', 'url(#imageFil
ter)') |
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 <filter id="imageFilter"> | 12 <filter id="imageFilter"> |
13 <feImage id="feImage" xlink:href="#svgRoot"/> | 13 <feImage id="feImage" xlink:href="#svgRoot"/> |
14 <feOffset dx="50" dy="50" /> | 14 <feOffset dx="50" dy="50" /> |
15 </filter> | 15 </filter> |
16 <g filter="url(#imageFilter)"> | 16 <g filter="url(#imageFilter)"> |
17 <rect x="0" y="0" width="50" height="50" fill="green" /> | 17 <rect x="0" y="0" width="50" height="50" fill="green" /> |
18 </g> | 18 </g> |
19 </svg> | 19 </svg> |
20 </body> | 20 </body> |
21 </html> | 21 </html> |
OLD | NEW |