17 lines
543 B
XML
17 lines
543 B
XML
<svg onload="loaded()" xmlns="http://www.w3.org/2000/svg">
|
|
<rect x="0" y="0" width="50" height="50" fill="red">
|
|
<animate id="anim" attributeName="visibility" to="visible" begin="0s" end="2s" />
|
|
<set attributeName="fill" to="green" begin="anim.endEvent" />
|
|
</rect>
|
|
<script>
|
|
if (window.testRunner)
|
|
testRunner.waitUntilDone();
|
|
|
|
function loaded() {
|
|
document.documentElement.setCurrentTime(2);
|
|
|
|
if (window.testRunner)
|
|
setTimeout(function() {testRunner.notifyDone();}, 100);
|
|
}
|
|
</script>
|
|
</svg> |