1 <svg xmlns='http://www.w3.org/
2000/svg' xmlns:
xlink=
"http://www.w3.org/1999/xlink" onload=
"runRepaintAndPixelTest()">>
2 <script xlink:
href=
"../../fast/repaint/resources/text-based-repaint.js"/>
4 <linearGradient id='test'
>
5 <stop id='stop' offset='
0' stop-color='red'
/>
8 <rect fill=
"url(#test)" width='
100' height='
100'
/>
11 function repaintTest() {
12 var gradient = document.getElementById(
"test");
13 var stop = document.createElementNS('http://www.w3.org/
2000/svg', 'stop');
14 stop.setAttribute(
"offset",
"0");
15 stop.style.stopColor = 'green';
16 gradient.appendChild(stop);