Chromium Code Reviews| 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(\"data:image/svg+xml," + | |
| 9 "<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'>" + | |
| 10 "<rect width='100' height='100' fill='blue'>" + | |
| 11 "<set attributeName='fill' to='green' dur='0.1s'/>" + | |
| 12 "</rect>" + | |
| 13 "</svg>\")"; | |
|
kouhei (in TOK)
2014/03/20 15:27:29
Maybe we can have this as a svg file in LayoutTest
fs
2014/03/20 17:02:17
Done. (But to as-background-image/resources/ - I g
| |
| 14 div.style.background = imgurl; | |
|
kouhei (in TOK)
2014/03/20 15:27:29
There are LayoutTests/svg/as-image/ testing svg in
fs
2014/03/20 17:02:17
The bug was reported against 'background-image' so
| |
| 15 setTimeout(function() { | |
| 16 div.style.background = ""; | |
| 17 setTimeout(function() { | |
| 18 div.style.background = imgurl; | |
| 19 if (window.testRunner) | |
| 20 testRunner.notifyDone(); | |
| 21 }, 10); | |
| 22 }, 150); | |
| 23 </script> | |
| 24 | |
| OLD | NEW |