1178575-2.html (864B)
1 <!DOCTYPE HTML> 2 <html class="reftest-wait"><head> 3 <meta charset="utf-8"> 4 <title>Testcase #2 for bug 1178575</title> 5 <style type="text/css"> 6 7 html,body { 8 color:black; background-color:white; font-size:16px; padding:0; margin:20px; 9 } 10 11 div { 12 position: absolute; 13 left: 0; 14 right: 0; 15 box-shadow: 0 0 0 10px rgba(0, 255, 0, 0.5); 16 margin-top: 10px; 17 } 18 19 span { 20 position: relative; 21 display: block; 22 overflow: hidden; 23 height: 200px; 24 } 25 26 </style> 27 <script> 28 function tweak() { 29 document.querySelector('div').style.height = "40px"; 30 document.documentElement.removeAttribute("class"); 31 } 32 window.addEventListener("MozReftestInvalidate", tweak); 33 </script> 34 </head> 35 <body><span><div></div><span></body></html>