1 <svg xmlns='http://www.w3.org/
2000/svg'
>
3 <linearGradient id='test'
>
4 <stop id='stop' offset='
0' stop-color='red'
/>
7 <rect fill=
"url(#test)" width='
100' height='
100'
/>
10 if (window.layoutTestController)
11 layoutTestController.waitUntilDone();
12 var loaded = function() {
13 var gradient = document.getElementById(
"test");
14 var stop = document.createElementNS('http://www.w3.org/
2000/svg', 'stop');
15 stop.setAttribute(
"offset",
"0");
16 stop.style.stopColor = 'green';
17 gradient.appendChild(stop);
18 if (window.layoutTestController)
19 layoutTestController.notifyDone();
21 window.setTimeout(loaded,
0);