blob: 02d8622caf42c61012643b4d5bccd2b7adaf6218 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<!DOCTYPE html>
<html>
<head>
<script>
function test() {
var elm = document.getElementById('elm');
elm.offsetTop; // trigger layout
elm.style.WebkitColumns = 'auto';
elm.style.columns = 'auto';
elm.style.overflow = '-webkit-paged-x';
}
</script>
</head>
<body onload="test()">
<p>There should be a blue <em>square</em> below, and no scrollbar.</p>
<div id="elm" style="-webkit-columns:4; columns:4; orphans:1; widows:1; width:16em; line-height:4em; background:blue;">
<br>
<div style="-webkit-column-span:all; column-span:all; height:4em;"></div>
<br>
<br>
</div>
</body>
</html>
|