blob: 676bef0749320e513c24cd35bda45d4a233c21b1 (
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
|
<!DOCTYPE html>
<html>
<head>
<style>
.box {
position: absolute;
top: 20px;
left: 20px;
height: 100px;
width: 100px;
background-color: red;
}
.composited {
transform: translateZ(0);
background-color: green;
outline: 10px solid transparent; /* inflate compositing layer bounds */
}
.box > .box {
top: 50px;
left: 50px;
width: 200px;
background-color: rgba(255, 0, 0, 0.6);
}
#indicator {
position: absolute;
top: 75px;
left: 75px;
height: 56px;
width: 56px;
background-color: blue;
}
</style>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function doTest()
{
if (window.testRunner) {
document.getElementById('layertree').innerText = window.internals.layerTreeAsText(document);
testRunner.notifyDone();
}
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div class="composited box">
<div class="composited box"></div>
</div>
<div id="indicator"></div>
<pre id="layertree"></pre>
</body>
</html>
|