| <!-- Test for https://bugs.webkit.org/show_bug.cgi?id=93972 --> |
| <svg xmlns="http://www.w3.org/2000/svg"> |
| <rect id="rect" height="100" fill="green"> |
| <animate id="animation" attributeName="width" from="10" to="100" begin="0s" dur="indefinite" fill="freeze" /> |
| testRunner.waitUntilDone(); |
| var width = document.getElementById('rect').width.animVal.value; |
| document.getElementById('result').innerHTML = (width == 100 ? "PASS: " : "FAIL: ") + 'animated width is ' + width; |
| window.setTimeout(function() { |
| var ani = document.getElementById('animation'); |
| ani.setAttribute("from", "100"); |
| window.setTimeout(function() { check(); }, 0); |