66 lines
1.6 KiB
HTML
66 lines
1.6 KiB
HTML
<!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>
|