<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Dynamically set paged overflow on the body element</title> | |
<script> | |
function test() { | |
document.body.offsetTop; // trigger layout | |
document.body.style.overflow = '-webkit-paged-x'; | |
document.body.style.overflow = 'paged-x'; | |
} | |
</script> | |
</head> | |
<body onload="test()"> | |
<div style="height:150vh;"> | |
There should be no text below. | |
<div style="-webkit-column-break-before:always;">FAIL</div> | |
</div> | |
</body> | |
</html> |