Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / svg / custom / gradient-add-stops.svg
blobbe02eb5ff206312abbc55a6894a74e1e4cffc7a1
1 <svg xmlns='http://www.w3.org/2000/svg'>
2 <defs>
3 <linearGradient id='test'>
4 <stop id='stop' offset='0' stop-color='red' />
5 </linearGradient>
6 </defs>
7 <rect fill="url(#test)" width='100' height='100' />
8 <script>
9 <![CDATA[
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);
22 ]]>
23 </script>
24 </svg>