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="forceStyleRecalc();repaintTest();"> |
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 <linearGradient id="gradient" gradientUnits="objectBoundingBox" x1="0" y1="0
" x2="1" y2="1"> | 4 <linearGradient id="gradient" gradientUnits="objectBoundingBox" x1="0" y1="0
" x2="1" y2="1"> |
5 <stop id="stop" stop-color="red" offset="0"/> | 5 <stop id="stop" stop-color="red" offset="0"/> |
6 </linearGradient> | 6 </linearGradient> |
7 | 7 |
8 <filter id="filter" > | 8 <filter id="filter" > |
9 <feImage xlink:href="#ellipse"/> | 9 <feImage xlink:href="#ellipse"/> |
10 </filter> | 10 </filter> |
11 <ellipse id="ellipse" cx="50%" cy="50%" rx="25%" ry="25%" fill="url(#gradien
t)"/> | 11 <ellipse id="ellipse" cx="50%" cy="50%" rx="25%" ry="25%" fill="url(#gradien
t)"/> |
12 </defs> | 12 </defs> |
13 <rect width="100%" height="100%" filter='url(#filter)'/> | 13 <rect width="100%" height="100%" filter='url(#filter)'/> |
14 | 14 |
15 <script> | 15 <script> |
16 function repaintTest() { | 16 function repaintTest() { |
17 document.getElementById("stop").setAttribute("stop-color", "green"); | 17 document.getElementById("stop").setAttribute("stop-color", "green"); |
18 } | 18 } |
19 </script> | 19 </script> |
20 </svg> | 20 </svg> |
OLD | NEW |