blob: e3794b435b39f4581ade687432c8f434b7895282 (
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
|
<html>
<head>
<style type="text/css" media="screen">
body {
overflow: hidden;
}
iframe {
position: absolute;
top: 0px;
left: 0px;
height: 300px;
width: 300px;
}
#overlap {
left: 250px;
}
pre {
position: absolute;
bottom: 2000px;
left: 0px;
}
</style>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
}
function doTest()
{
if (window.testRunner) {
document.getElementById('layers').innerHTML = window.internals.layerTreeAsText(document);
}
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<iframe src="resources/composited-subframe.html"></iframe>
<!-- this iframe should become composited because it overlaps the other iframe -->
<iframe id="overlap" src="resources/subframe.html"></iframe>
<pre id="layers">Layer tree appears here in DRT.</pre>
</body>
</html>
|