Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / animate-target-removed-from-document.svg
blobdb5989462c6e33f99510a440ca8d401a6ad2c414
1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintAndPixelTest()">
4 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/>
5 <rect width="100" height="100" fill="green"/>
6 <rect id="target" width="100" height="100" fill="red"/>
7 <animate attributeName="fill" xlink:href="#target" from="red" to="green" dur="1s" fill="freeze"/>
8 <script type="text/ecmascript">
9 <![CDATA[
10 window.testIsAsync = true;
11 // These svg files are animated automatically, so have flaky repaint rect
12 // output depending on when repaint rect capturing starts.
13 window.outputRepaintRects = false;
14 function repaintTest() {
15 setTimeout(function() {
16 document.getElementsByTagName("svg")[0].removeChild(document.getElementById('target'));
17 finishRepaintTest();
18 }, 200);
20 ]]>
21 </script>
22 </svg>