OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| 3 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 4 <script> |
| 5 window.testIsAsync = true; |
| 6 window.onload = runRepaintTest; |
| 7 |
| 8 function repaintTest() { |
| 9 var circle = document.getElementsByTagName("circle")[0]; |
| 10 ani = circle.animate([{ color: "blue" }, { color: "cyan"}], { duration: 2000,
iterations: 1}); |
| 11 setTimeout(function() { |
| 12 ani.currentTime = 1000; |
| 13 ani.pause(); |
| 14 runAfterLayoutAndPaint(finishRepaintTest); |
| 15 }, 0); |
| 16 } |
| 17 </script> |
| 18 <style> |
| 19 circle { |
| 20 fill: currentColor; |
| 21 color: blue; |
| 22 } |
| 23 </style> |
| 24 <body> |
| 25 <svg xmlns="http://www.w3.org/2000/svg" width=90 height=90> |
| 26 <circle r="40" cx="40" cy="40" /> |
| 27 </svg> |
| 28 </body> |
OLD | NEW |