blob: 57dfcae47df796c9e479a0f722c782a6dbe554e5 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>Dynamically set paged overflow on a DIV element</title>
<script>
function test() {
document.body.offsetTop; // trigger layout
document.getElementById('elm').style.overflow = '-webkit-paged-x';
document.getElementById('elm').style.overflow = 'paged-x';
}
</script>
</head>
<body onload="test()">
<div id="elm" style="width:30em; height:10em;">
There should be no text below.
<div style="margin-top:10em;">FAIL</div>
</div>
</body>
</html>