OLD | NEW |
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" onload="runRepaintTest()"> | 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" onload="runRepaintAndPixelTest()"> |
2 <script xlink:href="../../fast/repaint/resources/repaint.js"></script> | 2 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"></script
> |
3 <defs> | 3 <defs> |
4 <filter filterUnits="userSpaceOnUse" id="blur" x="0" y="0" width="40" height="14
0"> | 4 <filter filterUnits="userSpaceOnUse" id="blur" x="0" y="0" width="40" height="14
0"> |
5 <feGaussianBlur stdDeviation="10"/> | 5 <feGaussianBlur stdDeviation="10"/> |
6 </filter> | 6 </filter> |
7 </defs> | 7 </defs> |
8 <rect x="20" y="20" width="100" height="100" style="fill:green;filter:url(#blur)
;"/> | 8 <rect x="20" y="20" width="100" height="100" style="fill:green;filter:url(#blur)
;"/> |
9 <text y="150">You should see a green, blurred rectangle from 20x20 with width/he
ight 100</text> | 9 <text y="150">You should see a green, blurred rectangle from 20x20 with width/he
ight 100</text> |
10 | 10 |
11 <script> | 11 <script> |
12 function repaintTest() { | 12 function repaintTest() { |
13 document.getElementsByTagName("filter")[0].setAttribute("width", "140"); | 13 document.getElementsByTagName("filter")[0].setAttribute("width", "140"); |
14 } | 14 } |
15 </script> | 15 </script> |
16 </svg> | 16 </svg> |
OLD | NEW |