blob: 7bd36eadfee2842d14792b7bd44fbfc8e2ba71c6 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
body {
height: 1500px;
margin: 0;
}
#banner {
position: fixed;
top: 0;
width: 100%;
height: 120px;
background-color: rgba(0, 0, 0, 0.5);
}
iframe {
display: block;
margin: 20px;
height: 200px;
width: 280px;
}
</style>
<script type="text/javascript" charset="utf-8">
if (window.testRunner) {
testRunner.dumpAsText();
}
function doTest()
{
window.scrollTo(0, 100);
if (window.testRunner) {
document.getElementById('layers').innerHTML = internals.layerTreeAsText(document);
}
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div id="banner"></div>
<!-- Tests that when scrolled so that one iframe is overlapped, both iframes
and their contents become composited. -->
<iframe style="margin-top: 150px;" src="resources/intermediate-frame.html"></iframe>
<iframe src="resources/intermediate-frame.html"></iframe>
<pre id="layers">Layer tree appears here in DRT.</pre>
</body>
</html>