592698-1.html (863B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <iframe id="x" 4 srcdoc="<div id='a'>aaa"></iframe> 5 6 <script> 7 window.onload = function() { 8 window.frames[0].document.getElementById("a").setAttribute("style", 9 'transition-property: color;' + 10 'transition-duration: 10s;' + 11 'transition-property: color;' + 12 'transition-duration: 10s; ' + 13 'color: red;'); 14 15 // And start the transition 16 window.frames[0].document.documentElement.getBoundingClientRect(); 17 18 // Now kill off the presshell 19 var frame = document.getElementById("x"); 20 frame.style.display = "none"; 21 document.documentElement.getBoundingClientRect(); 22 23 // And wait for the refresh driver to fire 24 setTimeout(function() { 25 document.documentElement.className = ""; 26 }, 100); 27 } 28 </script> 29 </html>