blob: 69ff6b117bffc77e999cee98aa1e5119c58db987 [file] [log] [blame]
<svg onload="loaded()" xmlns="http://www.w3.org/2000/svg">
<rect id="rect" x="0" y="0" width="50" height="50" fill="red">
<animate id="anim" attributeName="visibility" to="visible" begin="1s" end="2s" onbegin="handleBeginEvent()" />
</rect>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
function handleBeginEvent(event) {
document.getElementById("rect").setAttribute("fill", "green");
testRunner.notifyDone();
}
function loaded() {
document.documentElement.setCurrentTime(1);
}
</script>
</svg>