1322291-2.html (598B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <style> 4 div { 5 width: 100px; 6 height: 100px; 7 background-color: red; 8 } 9 </style> 10 <body> 11 <div id=o_0></div> 12 <script> 13 function boom(){ 14 var anim = o_0.animate([ 15 {}, 16 {"transform": "scale(2)"}, 17 {"transform": "none"} 18 ], { 19 duration: 100, 20 iterationStart: 0.5, 21 }); 22 // We need to wait for finished promise just like we do in 1322291-1.html. 23 anim.finished.then(function() { 24 document.documentElement.classList.remove("reftest-wait"); 25 }); 26 } 27 document.addEventListener("DOMContentLoaded", boom); 28 </script> 29 30 </body> 31 </html>