blob: 81ca80f06ae2f25e04991327f741d96c1d2b30dd [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.container {
width: 100px;
height: 100px;
border: 1px solid black;
-webkit-perspective: 500px;
}
.box {
width: 100px;
height: 100px;
margin: 10px;
padding: 10px;
box-sizing: border-box;
background-color: silver;
-webkit-transform: translateZ(100px);
-webkit-transform-style: preserve-3d;
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function doTest()
{
if (window.internals)
document.getElementById('layers').innerText = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS)
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div class="container">
<div class="box">Box
<div class="box">Box</div>
</div>
</div>
<pre id="layers">Layer tree goes here when testing</pre>
</body>
</html>