OLD | NEW |
1 <?xml version="1.0" standalone="no"?> | 1 <?xml version="1.0" standalone="no"?> |
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
.1/DTD/svg11.dtd"> | 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
.1/DTD/svg11.dtd"> |
3 <svg width="128px" height="128px" version="1.1" xmlns="http://www.w3.org/2000/sv
g" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintTest()"> | 3 <svg width="128px" height="128px" version="1.1" xmlns="http://www.w3.org/2000/sv
g" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintAndPixelTest()"> |
4 <script xlink:href="../../fast/repaint/resources/repaint.js" type="text/javascri
pt"></script> | 4 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js" type="te
xt/javascript"></script> |
5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
6 function repaintTest() { | 6 function repaintTest() { |
7 document.getElementById('poke').style.fill = 'green'; | 7 document.getElementById('poke').style.fill = 'green'; |
8 } | 8 } |
9 </script> | 9 </script> |
10 | 10 |
11 <defs> | 11 <defs> |
12 <filter id="dropShadow"> | 12 <filter id="dropShadow"> |
13 <feDropShadow stdDeviation="2" dx="3" dy="3" flood-color="black"/> | 13 <feDropShadow stdDeviation="2" dx="3" dy="3" flood-color="black"/> |
14 </filter> | 14 </filter> |
15 </defs> | 15 </defs> |
16 | 16 |
17 <title> | 17 <title> |
18 Tests that dynamically updating the child of a <g> with a filter applied
correctly repaints | 18 Tests that dynamically updating the child of a <g> with a filter applied
correctly repaints |
19 affected parts of the group. Both squares should be green if repainting is wor
king properly. | 19 affected parts of the group. Both squares should be green if repainting is wor
king properly. |
20 </title> | 20 </title> |
21 | 21 |
22 <g filter='url(#dropShadow)'> | 22 <g filter='url(#dropShadow)'> |
23 <rect width="64" height="64" style="fill:green"/> | 23 <rect width="64" height="64" style="fill:green"/> |
24 <rect id='poke' x='32' y='32' width="64" height="64" style="fill:red"/> | 24 <rect id='poke' x='32' y='32' width="64" height="64" style="fill:red"/> |
25 </g> | 25 </g> |
26 </svg> | 26 </svg> |
27 | 27 |
OLD | NEW |