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