blob: 920ffd4e345b6f4ee1b79193e18f60d1dfb74f14 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.container {
position: relative;
height: 200px;
width: 500px;
border: 1px solid black;
overflow: hidden;
z-index: 0;
}
.box {
position: absolute;
width: 200px;
height: 200px;
background-color: blue;
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function dumpLayers()
{
if (window.internals)
document.getElementById('layers').innerText = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS)
}
window.addEventListener('load', dumpLayers, false);
</script>
</head>
<body>
<div class="container">
<div class="box" style="-webkit-transform: translate3d(-100px, 0, 0)"></div>
<div class="box" style="-webkit-transform: translate3d(150px, 0, 0) rotate(45deg)"></div>
<div class="box" style="-webkit-transform: translate3d(400px, 0, 0)"></div>
</div>
<pre id="layers">Layer tree goes here when testing</pre>
</body>
</html>