594333-1.html (580B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <head> 4 <style> 5 div { 6 float: left; 7 width: 300px; 8 height: 200px; 9 background: url(repeatable-diagonal-gradient.png); 10 } 11 </style> 12 <script type="text/javascript"> 13 var i = 32; 14 function test() { 15 document.getElementById("a").style.width = (i*10)+'px'; 16 document.getElementById("b").style.opacity = 0.999 - i/64.0; 17 i--; 18 if (i >= 0) { 19 setTimeout(test, 10); 20 } else { 21 document.documentElement.removeAttribute("class"); 22 } 23 } 24 </script> 25 </head> 26 <body onload="test()"> 27 <div id="a"></div> 28 <div id="b"></div> 29 </body> 30 </html>