OLD | NEW |
1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" onload="runRepaintTest()"> | 2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" onload="runRepaintAndPixelTest()"> |
3 <script xlink:href="../../fast/repaint/resources/repaint.js"></script> | 3 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"></sc
ript> |
4 <title>There should be a single green square.</title> | 4 <title>There should be a single green square.</title> |
5 <defs> | 5 <defs> |
6 <rect id="rect" width="100" height="100" fill="red" /> | 6 <rect id="rect" width="100" height="100" fill="red" /> |
7 <rect id="rect2" width="100" height="100" fill="green" /> | 7 <rect id="rect2" width="100" height="100" fill="green" /> |
8 | 8 |
9 <filter id="image"> | 9 <filter id="image"> |
10 <feImage id="feimage" xlink:href="#rect" /> | 10 <feImage id="feimage" xlink:href="#rect" /> |
11 </filter> | 11 </filter> |
12 </defs> | 12 </defs> |
13 <rect x="0" y="0" width="100" height="100" filter="url(#image)" /> | 13 <rect x="0" y="0" width="100" height="100" filter="url(#image)" /> |
14 <script> | 14 <script> |
15 <![CDATA[ | 15 <![CDATA[ |
16 function repaintTest() { | 16 function repaintTest() { |
17 document.getElementById("feimage").setAttributeNS("http://www.w3.org
/1999/xlink", "href", "#rect2"); | 17 document.getElementById("feimage").setAttributeNS("http://www.w3.org
/1999/xlink", "href", "#rect2"); |
18 } | 18 } |
19 ]]> | 19 ]]> |
20 </script> | 20 </script> |
21 </svg> | 21 </svg> |
OLD | NEW |