<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 = internals.layerTreeAsText(document);
testRunner.dumpAsTextWithPixelResults();
}
}
window.addEventListener('load', doTest, false);
</script>
<body>
<div id="indicator"></div>
<iframe src="rtl-relative.html"></iframe>
<pre id="layertree"></pre>
</body>
</html>