637597-1.html (944B)
1 <!DOCTYPE HTML> 2 <html class="reftest-wait"> 3 <head> 4 <style> 5 html { background:white; } 6 #parent { 7 position: absolute; 8 top: 100.8px; 9 transform: scale(1.1232,1.1232); 10 transform: scale(1.1232,1.1232); 11 } 12 #b1 { 13 position: absolute; 14 width: 100px; 15 height: 109px; 16 background: #c00; 17 transform: translate(100px,100px); 18 transform: translate(100px,100px); 19 } 20 #b2 { 21 position: absolute; 22 top: 0; 23 left: 0; 24 width: 100px; 25 height: 100px; 26 background: white; 27 transform: translate(400px,200px); 28 transform: translate(400px,200px); 29 } 30 #b2.done { 31 transform: translate(400px,0); 32 transform: translate(400px,0); 33 } 34 </style> 35 </head> 36 <body> 37 <div id="parent"> 38 <div id="b1"></div> 39 <div id="b2"></div> 40 </div> 41 <script> 42 function doTest() { 43 document.getElementById('b2').setAttribute("class", "done"); 44 document.documentElement.removeAttribute("class"); 45 } 46 window.addEventListener("MozReftestInvalidate", doTest); 47 </script> 48 </body> 49 </html>