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