| OLD | NEW |
| 1 <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> | 1 <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> |
| 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/R
EC-SVG-20010904/DTD/svg10.dtd"> | 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/R
EC-SVG-20010904/DTD/svg10.dtd"> |
| 3 <svg width="450" height="450" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="ht
tp://www.w3.org/1999/xlink" onload="runRepaintTest()"> | 3 <svg width="450" height="450" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="ht
tp://www.w3.org/1999/xlink" onload="runRepaintAndPixelTest()"> |
| 4 <script xlink:href="../../fast/repaint/resources/repaint.js"/> | 4 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> |
| 5 <defs> | 5 <defs> |
| 6 <linearGradient id="gradient" gradientUnits="userSpaceOnUse" x1="10" y1="10"
x2="440" y2="10"> | 6 <linearGradient id="gradient" gradientUnits="userSpaceOnUse" x1="10" y1="10"
x2="440" y2="10"> |
| 7 <stop stop-color="green" offset="0"/> | 7 <stop stop-color="green" offset="0"/> |
| 8 <stop id="stop1" stop-color="red" offset="0.5"/> | 8 <stop id="stop1" stop-color="red" offset="0.5"/> |
| 9 <stop stop-color="green" offset="1"/> | 9 <stop stop-color="green" offset="1"/> |
| 10 </linearGradient> | 10 </linearGradient> |
| 11 | 11 |
| 12 <linearGradient id="linkedGradient2" xlink:href="#linkedGradient1"/> | 12 <linearGradient id="linkedGradient2" xlink:href="#linkedGradient1"/> |
| 13 <linearGradient id="linkedGradient1" xlink:href="#gradient"/> | 13 <linearGradient id="linkedGradient1" xlink:href="#gradient"/> |
| 14 </defs> | 14 </defs> |
| 15 | 15 |
| 16 <script> | 16 <script> |
| 17 function repaintTest() { | 17 function repaintTest() { |
| 18 var stop = document.getElementById("stop1"); | 18 var stop = document.getElementById("stop1"); |
| 19 stop.parentNode.removeChild(stop); | 19 stop.parentNode.removeChild(stop); |
| 20 } | 20 } |
| 21 </script> | 21 </script> |
| 22 | 22 |
| 23 <rect x="10" y="10" width="430" height="80" fill="url(#gradient)"/> | 23 <rect x="10" y="10" width="430" height="80" fill="url(#gradient)"/> |
| 24 <rect x="10" y="110" width="430" height="80" fill="url(#linkedGradient1)"/> | 24 <rect x="10" y="110" width="430" height="80" fill="url(#linkedGradient1)"/> |
| 25 <rect x="10" y="210" width="430" height="80" fill="url(#linkedGradient2)"/> | 25 <rect x="10" y="210" width="430" height="80" fill="url(#linkedGradient2)"/> |
| 26 <text text-anchor="middle" x="220" y="320">All gradients should look the same</t
ext> | 26 <text text-anchor="middle" x="220" y="320">All gradients should look the same</t
ext> |
| 27 </svg> | 27 </svg> |
| OLD | NEW |