block-overflow-3-dyn.html (687B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <head> 4 <style type="text/css"> 5 .separator { 6 height: 20px; 7 background-color: blue; 8 } 9 #overflow { 10 overflow-y: visible; 11 height: 200px; 12 margin: 20px 0; 13 background-color: lightgreen; 14 } 15 #child { 16 height: 160px; 17 margin: 40px 0; 18 background-color: green; 19 } 20 </style> 21 <script type="text/javascript"> 22 function test() { 23 document.getElementById('overflow').style.overflowY = 'scroll'; 24 document.documentElement.removeAttribute('class'); 25 } 26 document.addEventListener('MozReftestInvalidate', test); 27 </script> 28 </head> 29 <body> 30 <div class="separator"></div> 31 <div id="overflow"> 32 <div id="child"></div> 33 </div> 34 <div class="separator"></div> 35 </body> 36 </html>