1149304-1-transform-change.html (571B)
1 <!DOCTYPE HTML> 2 <html class="reftest-wait"> 3 <head> 4 <meta charset="utf-8"> 5 <style> 6 body { transform:translateY(100px); white-space: pre; } 7 p { margin: 0; } 8 span { padding: 2px; color: red; background: blue; } 9 </style> 10 <script> 11 function test(n) { 12 document.body.style.transform = "translateY(" + n + "px)"; 13 if (n > 10) { 14 setTimeout("test(" + (n - 10) + ")", 0); 15 } else { 16 document.documentElement.removeAttribute("class"); 17 } 18 } 19 </script> 20 </head> 21 <body onload="test(100)"><p> <span> </span> </p> 22 </body> 23 </html>