blob: 28b86320d38e34becfc795439d4d33b97bb552b1 [file] [log] [blame]
<html>
<head>
<style>
body {
direction: rtl;
margin: 0px;
background-color: red;
}
.positioned {
position: absolute;
top: 50px;
left: 50px;
width: 100px;
height: 100px;
}
.indicator {
background-color: red;
}
.layer {
-webkit-transform:translateZ(0);
background-color: green;
}
#root {
width: 1000px;
height: 1000px;
background-color: white;
}
#layertree {
position: absolute;
top: 10000px;
left: 0px;
}
</style>
<script>
function doTest() {
if (window.testRunner) {
if (top == self)
document.getElementById('layertree').innerText = window.internals.layerTreeAsText(document);
testRunner.dumpAsText(true);
}
}
window.addEventListener('load', doTest, false);
</script>
<body>
<div id="root"></div>
<div class="positioned indicator"></div>
<div class="positioned layer"></div>
<pre id="layertree"></pre>
</body>
</html>