blob: 158840cdbeab6b98ef1889577573f29c8cf78d67 [file] [log] [blame]
<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>