OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE HTML> | |
2 <script> | |
3 if (window.testRunner) | |
4 testRunner.waitUntilDone(); | |
5 window.onload = function() { | |
6 var svg = document.querySelector('svg'); | |
7 setTimeout(function() { | |
8 svg.style.backgroundColor = "green"; | |
9 requestAnimationFrame(function() { | |
10 if (window.testRunner) | |
11 testRunner.notifyDone(); | |
12 }); | |
13 }, 0); | |
pdr.
2014/03/31 16:51:32
Is this setTimeout needed? I think the rAF should
| |
14 }; | |
15 </script> | |
16 <svg width="200px" height="100px" viewBox="0 0 100 100" | |
17 style="background-color: red"> | |
18 </svg> | |
OLD | NEW |