blob: 5da7d9f86de9929912f093e3e0b9199515527566 (
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
71
72
73
74
75
76
77
78
79
80
81
82
83
|
<!DOCTYPE html>
<head>
<style>
.composited {
transform: translatez(0);
}
.box {
width: 100px;
height: 100px;
}
.behind {
position: absolute;
z-index: 1;
top: 100px;
left: 100px;
background-color: blue;
}
.middle {
position: absolute;
z-index: 1;
top: 15px;
left: 15px;
background-color: lime;
}
.middle2 {
position: absolute;
z-index: 1;
top: 130px;
left: 60px;
background-color: magenta;
}
.top {
position: absolute;
z-index: 1;
top: 70px;
left: 120px;
background-color: cyan;
}
.container {
position: absolute;
z-index: 1;
top: 25px;
left: 25px;
width: 300px;
height: 300px;
background-color: gray;
}
div:hover {
background-color: green;
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function runTest()
{
if (!window.internals) {
alert('This test requires window.internals')
return;
}
document.body.textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
document.body.style.whiteSpace = 'pre';
}
</script>
</head>
<body onload="runTest()">
<div class="container">
<div class="composited box behind"></div>
<div class="box middle"></div>
</div>
<div class="box middle2"></div>
<div class="box top"></div>
</body>
|