Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / animations / discard-check-delete.svg
blob932d3ec8eb6bc60dba3c6ecc8dd7148e699f16b9
1 <?xml version="1.0" encoding="UTF-8"?>
2 <svg onload="loaded()" version="1.2" baseProfile="tiny" id="svg-root" width="100%" height="100%"
3 viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg"
4 xmlns:xlink="http://www.w3.org/1999/xlink">
5 <rect id="r1" x="100" y="100" width="200" height="200" fill="green"/>
6 <rect id="r2" x="100" y="100" width="200" height="200" fill="red" />
7 <discard id="discard1" xlink:href="#r2" begin="2s"/>
8 <set id="set" attributeName="display" to="inline" begin="3s" dur="1s" fill="freeze" onbegin="test();"/>
9 <script>
10 if (window.testRunner)
11 testRunner.waitUntilDone();
13 function loaded() {
14 document.documentElement.setCurrentTime(4);
16 if (window.testRunner)
17 setTimeout(function(){testRunner.notifyDone();}, 10);
20 function test() {
21 var d1 = document.getElementById("discard1");
22 var r2 = document.getElementById("r2");
24 if(d1 || r2)
25 document.getElementById("r1").setAttribute("fill", "red");
27 </script>
28 </svg>