blob: 8cd8a8782e7cf55f05d66a941f85a01b4671578d [file] [log] [blame]
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintAndPixelTest()">
<script xlink:href="../resources/text-based-repaint.js"/>
<rect width="100" height="100" fill="green"/>
<rect id="target" width="100" height="100" fill="red"/>
<animate attributeName="fill" xlink:href="#target" from="red" to="green" dur="1s" fill="freeze"/>
<script type="text/ecmascript">
<![CDATA[
window.testIsAsync = true;
// These svg files are animated automatically, so have flaky repaint rect
// output depending on when repaint rect capturing starts.
window.outputRepaintRects = false;
function repaintTest() {
setTimeout(function() {
document.getElementsByTagName("svg")[0].removeChild(document.getElementById('target'));
finishRepaintTest();
}, 200);
}
]]>
</script>
</svg>