<!-- Quirks mode --> <body onload="document.getElementById('a').style.removeProperty('height');"> <div id="a" style="overflow:auto; height:200px; width:200px"> <div style="overflow:auto"> <div style="background: green; height:100%"></div> </div> </div> </body>