48 lines
909 B
HTML
48 lines
909 B
HTML
<html>
|
|
<head>
|
|
<style>
|
|
body {
|
|
overflow: hidden;
|
|
}
|
|
|
|
iframe {
|
|
position: absolute;
|
|
top: 0px;
|
|
left: 0px;
|
|
width: 400px;
|
|
height: 400px;
|
|
border: none;
|
|
}
|
|
|
|
#indicator {
|
|
position: absolute;
|
|
top: 58px;
|
|
left: 242px;
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: red;
|
|
}
|
|
|
|
#layertree {
|
|
position: absolute;
|
|
top: 10000px;
|
|
left: 0px;
|
|
}
|
|
</style>
|
|
<script>
|
|
function doTest() {
|
|
if (window.testRunner) {
|
|
document.getElementById('layertree').innerText = window.internals.layerTreeAsText(document);
|
|
testRunner.dumpAsText(true);
|
|
}
|
|
}
|
|
window.addEventListener('load', doTest, false);
|
|
</script>
|
|
<body>
|
|
<div id="indicator"></div>
|
|
<iframe src="rtl-relative.html"></iframe>
|
|
|
|
<pre id="layertree"></pre>
|
|
</body>
|
|
</html>
|