Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / gradient-add-stops.svg
blob690c6ea56ddeb687d9b394f7e17f19ce16abf74b
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"/>
3 <defs>
4 <linearGradient id='test'>
5 <stop id='stop' offset='0' stop-color='red' />
6 </linearGradient>
7 </defs>
8 <rect fill="url(#test)" width='100' height='100' />
9 <script>
10 <![CDATA[
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);
18 ]]>
19 </script>
20 </svg>