blob: ff5fbd7c156b99270569279071d0175179d5429a [file] [log] [blame]
<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintTest()">>
<script xlink:href="../../fast/repaint/resources/repaint.js"/>
<defs>
<linearGradient id='test'>
<stop id='stop' offset='0' stop-color='red' />
</linearGradient>
</defs>
<rect fill="url(#test)" width='100' height='100' />
<script>
<![CDATA[
function repaintTest() {
var gradient = document.getElementById("test");
var stop = document.createElementNS('http://www.w3.org/2000/svg', 'stop');
stop.setAttribute("offset", "0");
stop.style.stopColor = 'green';
gradient.appendChild(stop);
}
]]>
</script>
</svg>