blob: 3c84c71347c745283143550ec753c9bbd469a053 (
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
|
<html>
<head>
<style>
#container {
transform: translate(-10px, 0px);
}
#indicator {
position: absolute;
left: 15px;
top: 0px;
height: 256px;
width: 256px;
background-color: red;
}
#green {
position: absolute;
left: 0px;
top: 0px;
width: 300px;
height: 300px;
background-color: green;
}
#composited {
position: absolute;
left: 400px;
transform:translateZ(0);
}
#layertree {
position: absolute;
left: 10000px;
top: 0px;
}
body {
overflow: hidden;
}
</style>
<script>
if (window.testRunner) {
testRunner.dumpAsTextWithPixelResults();
window.addEventListener('load', function() {
document.getElementById("layertree").innerText = window.internals.layerTreeAsText(document);
}, false);
}
</script>
<body>
<div id="container">
<!-- This red square should not be visible -->
<div id="indicator"></div>
<div id="composited"></div>
</div>
<!-- This green square should render completely on top of the red one -->
<div id="green"></div>
<pre id="layertree"></pre>
</body>
</html>
|