blob: 490b7502093e4dc34e5c33c0e55063babe2bfa18 [file] [log] [blame]
<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runTest(evt)">
>
<script>
<![CDATA[
function runTest(evt) {
grada = document.getElementById("inneruse");
gradb = document.getElementById("offset");
offset();
}
var turns = 5;
function offset(){
grada.setAttribute ("transform", "");
gradb.setAttribute ("offset", "1.0");
turns--;
if (turns > 0)
window.setTimeout("offset()",10)
}
]]>
</script>
<defs>
<linearGradient id="grad">
<stop offset="0" style="stop-color: green"/>
<stop id="offset" offset="1" style="stop-color: green"/>
</linearGradient>
<path id="hp" d="M 0 0 L 100 0 L 100 100 L 0 100" />
</defs>
<g id="inneruse">
<use xlink:href="#hp" style="fill:url(#grad)"/>
</g>
<use xlink:href="#inneruse" style="fill:url(#grad)"/>
</svg>