blob: e20a6e70e32c911856b2ef44cc4c1e8ac1694d18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<!DOCTYPE html>
<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
<link rel="help" href="https://crbug.com/965639">
<style>
#multicol {
columns: 2;
column-fill: auto;
height: 50px;
background: orange;
}
#container {
contain: strict;
width: 100px;
height: 100px;
background: blue;
}
#target {
width: 100px;
height: 100px;
position: absolute;
background: purple;
}
.transform {
transform: translate(0, 50px);
}
</style>
<body>
<div id="multicol">
<div id="container">
<div id="target"></div>
</div>
</div>
<script>
document.body.offsetTop;
target.appendChild(document.createTextNode('a'));
</script>
</body>
|