blob: a4bd3c61c44c3677262a488be2ff41f5ea294272 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.container {
width: 100px;
height: 100px;
border: 1px solid black;
-webkit-transform: scale3d(2, 2, 1);
-webkit-transform-origin: top left;
}
.box {
width: 100px;
height: 100px;
margin: 10px;
padding: 10px;
box-sizing: border-box;
background-color: silver;
}
.composited {
-webkit-transform: translateZ(0);
}
</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="composited box">Box</div>
</div>
<pre id="layers">Layer tree goes here when testing</pre>
</body>
</html>