| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <title>SVG-in-<img>: Animation resets when all references are removed.</ti
tle> | |
| 3 <div style="width: 100px; height: 100px;"></div> | |
| 4 <script> | |
| 5 if (window.testRunner) | |
| 6 testRunner.waitUntilDone(); | |
| 7 var div = document.querySelector('div'); | |
| 8 var imgurl = "url('../as-image/resources/animated-rect-color.svg')"; | |
| 9 div.style.background = imgurl; | |
| 10 setTimeout(function() { | |
| 11 div.style.background = ""; | |
| 12 // FIXME: we need a better way of waiting for chromium events to happen | |
| 13 setTimeout(function() { | |
| 14 div.style.background = imgurl; | |
| 15 setTimeout(function() { | |
| 16 if (window.testRunner) | |
| 17 testRunner.notifyDone(); | |
| 18 }, 10); | |
| 19 }, 1); | |
| 20 }, 100); | |
| 21 </script> | |
| 22 | |
| OLD | NEW |