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 100x100 square.</title> | 4 <title>There should be a single green 100x100 square.</title> |
5 <defs> | 5 <defs> |
6 <rect id="red-rect" width="100" height="100" fill="red"/> | 6 <rect id="red-rect" width="100" height="100" fill="red"/> |
7 <rect id="green-rect" width="100" height="100" fill="green"/> | 7 <rect id="green-rect" width="100" height="100" fill="green"/> |
8 | 8 |
9 <filter id="filter"> | 9 <filter id="filter"> |
10 <feImage id="feimage-red" xlink:href="#red-rect"/> | 10 <feImage id="feimage-red" xlink:href="#red-rect"/> |
11 </filter> | 11 </filter> |
12 </defs> | 12 </defs> |
13 <rect x="0" y="0" width="100" height="100" filter="url(#filter)" /> | 13 <rect x="0" y="0" width="100" height="100" filter="url(#filter)" /> |
14 <script> | 14 <script> |
15 <![CDATA[ | 15 <![CDATA[ |
16 function repaintTest() | 16 function repaintTest() |
17 { | 17 { |
18 var newFEImage = document.createElementNS("http://www.w3.org/2000/sv
g", "feImage"); | 18 var newFEImage = document.createElementNS("http://www.w3.org/2000/sv
g", "feImage"); |
19 newFEImage.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#
green-rect"); | 19 newFEImage.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#
green-rect"); |
20 document.getElementById("filter").appendChild(newFEImage); | 20 document.getElementById("filter").appendChild(newFEImage); |
21 } | 21 } |
22 ]]> | 22 ]]> |
23 </script> | 23 </script> |
24 </svg> | 24 </svg> |
OLD | NEW |