blob: 2c8744368c712d5e9ad2b0e9b7e3d2b6a7411866 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
body {
height: 1000px;
}
iframe {
display: block;
margin: 10px;
border: 5px solid black;
}
#container {
position: absolute;
top: 10px;
border: 4px solid green;
padding: 10px;
}
#container.fixed {
position: fixed;
top: 10px;
border: 4px solid orange;
}
#tree {
position: absolute;
top: 375px;
}
</style>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
window.internals.settings.setScrollingTreeIncludesFrames(true);
}
function startTest()
{
window.setTimeout(function() {
var iframe = document.getElementById('iframe');
iframe.remove();
if (window.internals)
document.getElementById('tree').innerText = internals.scrollingStateTreeAsText();
if (window.testRunner)
testRunner.notifyDone();
}, 0);
}
window.addEventListener('load', startTest, false);
</script>
</head>
<body>
<div id="container" class="fixed">
<iframe id="iframe" src="resources/doc-with-sticky.html" scrolling="no" width="500" height="300"></iframe>
</div>
<pre id="tree">Scrolling tree goes here</pre>
</body>
</html>