blob: f53d09dfe37796190d6006d2f921afc33e8cc49b (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
<!DOCTYPE html>
<html>
<head>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.onload = function() {
document.getElementById("item-body").style.display = "block";
function runTest() {
var pre = document.createElement('pre');
if (!window.internals) {
var description = "This test ensures non-self-painting elements don't"
+ "get squashed.";
pre.innerHTML = description;
} else {
document.body.offsetTop;
pre.innerHTML = internals.layerTreeAsText(document);
}
document.body.appendChild(pre);
}
runTest();
};
</script>
<style>
.container {
overflow: auto;
}
#floated-container {
float: left;
height: 100px;
overflow: auto;
}
#composited-container {
backface-visibility: hidden;
}
#empty-block {
height: 200px;
}
#item-body {
display: none;
background-color: blue;
height: 40px;
width: 40px;
}
</style>
</head>
<body>
<div id="composited-container">
<div id="floated-container">
<div id="empty-block"></div>
</div>
</div>
<div id="content-container" class="container">
<div id="item-title">Item 1</div>
<div id="item-body"></div>
</div>
</body>
</html>
|