blob: 9ae3a2697f591cc3c3fff08acdc7fc9ce0475181 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
if (window.internals)
internals.settings.setRegionBasedColumnsEnabled(true);
</script>
<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>