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();"/>
10 if (window.testRunner)
11 testRunner.waitUntilDone();
14 document.documentElement.setCurrentTime(
4);
16 if (window.testRunner)
17 setTimeout(function(){testRunner.notifyDone();},
10);
21 var d1 = document.getElementById(
"discard1");
22 var r2 = document.getElementById(
"r2");
25 document.getElementById(
"r1").setAttribute(
"fill",
"red");