| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <style id="emptyStyle"></style> | |
| 3 <style> | |
| 4 @font-face { | |
| 5 font-family: dummy; | |
| 6 src: local(dummy); | |
| 7 } | |
| 8 | |
| 9 #animated { | |
| 10 font-family: serif; | |
| 11 transition: background-color 1s; | |
| 12 background: white; | |
| 13 } | |
| 14 | |
| 15 #animated.green { | |
| 16 background-color: green; | |
| 17 } | |
| 18 </style> | |
| 19 <p>PASS if no assert.</p> | |
| 20 <div id="animated"></div> | |
| 21 <script> | |
| 22 if (window.testRunner) | |
| 23 testRunner.waitUntilDone(); | |
| 24 | |
| 25 onload = function() { | |
| 26 animated.className = "green"; | |
| 27 requestAnimationFrame(function(){ | |
| 28 requestAnimationFrame(function(){ | |
| 29 requestAnimationFrame(function(){ | |
| 30 emptyStyle.parentNode.removeChild(emptyStyle); | |
| 31 if (window.testRunner) | |
| 32 testRunner.notifyDone(); | |
| 33 }); | |
| 34 }); | |
| 35 }); | |
| 36 }; | |
| 37 </script> | |
| OLD | NEW |