| <script src="../../resources/js-test-pre.js"></script> |
| <script src="resources/SVGAnimationTestCase.js"></script> |
| testRunner.waitUntilDone(); |
| svg = document.getElementById("svg"); |
| rect = document.getElementById("rect"); |
| document.body.removeChild(svg); |
| document.body.appendChild(svg); |
| shouldBeCloseEnough("rect.x.animVal.value", "30", 1); |
| shouldBeCloseEnough("rect.x.animVal.value", "60", 1); |
| <h1>Reinserting SVG animation into document should continue the animation</h1> |
| <svg id="svg" xmlns="http://www.w3.org/2000/svg"> |
| <rect id="rect" x="0" y="0" width="20" height="20"> |
| <animate attributeName="x" begin="0" from="0" to="90" dur="3s" fill="freeze" /> |