blob: 650f9dd0d49a906e24c135bccfdf048eedd2f82b (
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
|
<!DOCTYPE html>
<html>
<head>
<style>
.composited {
transform: translatez(0);
}
.box {
position: absolute;
top: 360px;
left: 50px;
background-color: cyan;
width: 300px;
height: 100px;
}
#iframe1 {
position: absolute;
top: 30px;
left: 10px;
width: 150px;
height: 150px;
}
#iframe2 {
position: absolute;
top: 200px;
left: 10px;
width: 150px;
height: 150px;
}
#iframe3 {
position: absolute;
top: 380px;
left: 10px;
width: 150px;
height: 150px;
}
</style>
<script type="text/javascript">
if (window.internals) {
window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
}
if (window.testRunner) {
testRunner.dumpAsText();
window.addEventListener("load", function() {
document.getElementById("layertree").innerText = window.internals.layerTreeAsText(document);
}, false);
}
</script>
</head>
<body style="height: 4000px;">
<div>In all iframes, the green fixed-position element should not be composited.
<pre id="layertree"></pre>
</div>
<div class="composited box"> Composited box underneath iframe. </div>
<iframe id="iframe1" src="resources/fixed-position-nonscrollable-body.html"></iframe>
<iframe id="iframe2" class="composited" src="resources/fixed-position-nonscrollable-body.html"></iframe>
<iframe id="iframe3" src="resources/fixed-position-nonscrollable-body.html"></iframe>
</body>
</html>
|