3 <!-- Test for https://bugs.webkit.org/show_bug.cgi?id=93972 -->
4 <div id=
"result"></div>
6 <svg xmlns=
"http://www.w3.org/2000/svg">
7 <rect id=
"rect" height=
"100" fill=
"green">
8 <animate id=
"animation" attributeName=
"width" from=
"10" to=
"100" begin=
"0s" dur=
"indefinite" fill=
"freeze" />
13 if (window
.testRunner
) {
14 testRunner
.dumpAsText();
15 testRunner
.waitUntilDone();
19 var width
= document
.getElementById('rect').width
.animVal
.value
;
20 document
.getElementById('result').innerHTML
= (width
== 100 ? "PASS: " : "FAIL: ") + 'animated width is ' + width
;
22 if (window
.testRunner
)
23 testRunner
.notifyDone();
26 window
.setTimeout(function() {
27 var ani
= document
.getElementById('animation');
28 ani
.setAttribute("from", "100");
31 window
.setTimeout(function() { check(); }, 0);