Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

SVG Preview (Scaled)

Preview of https://hg.mozilla.org/mozilla-central/raw-file/tip/testing/web-platform/tests/svg/animations/scripted/clear-mapped-animation.svg
<svg class="reftest-wait" onload="load()" xmlns="http://www.w3.org/2000/svg"
<html:script src="/common/reftest-wait.js"/>
<html:script src="/common/rendering-utils.js"/>
<html:link rel="match" href="../../embedded/reference/green-rect-100x100.svg"/>
<rect id="r" width="100" height="50" fill="green">
<animate attributeName="height" values="0" dur="20ms"/>
</rect>
<script>
function load() {
document.documentElement.setCurrentTime(1);
document.getElementById("r").setAttribute("height", 100);
waitForAtLeastOneFrame().then(takeScreenshot);
}
</script>
</svg>