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/layout/reftests/svg/smil/seek/anim-x-seek-negative-1a.svg
class="reftest-wait"
onload="go()">
<script type="text/javascript">
function go() {
// A negative seek should be clamped to 0
var svg = document.documentElement;
svg.pauseAnimations();
svg.setCurrentTime(-1);
svg.removeAttribute("class");
}
</script>
<rect x="100" y="15" width="200" height="200" fill="blue">
<animate attributeName="x" from="0" to="30" begin="-1s" dur="2s"/>
</rect>
</svg>