<html>
<body>
Scrollbars should work
<div id=x style='position:relative; width:100px; height:100px; overflow: scroll'>
</div>
<script>
var e = document.getElementById('x');
// force relayout to create scrollbars
e.offsetTop;
// switch to auto
e.style.overflow = 'auto';
// add some content
e.innerHTML = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>';
</script>