blob: 864f70de10d8d22dadf53b7b55981a7f32780796 [file] [log] [blame]
<html>
<head>
<style type="text/css">
body {
width: 100px;
height: 100px;
background-color: blue;
}
#underbody {
position: fixed;
z-index: -1;
width: 200px;
height: 200px;
background-color: green;
-webkit-transform: translateZ(0);
}
</style>
<script type="text/javascript">
if (window.testRunner)
testRunner.dumpAsText();
function doTest() {
if (window.testRunner && window.internals)
document.getElementById('layertree').innerText = window.internals.layerTreeAsText(document);
}
window.addEventListener('load', doTest, false);
</script>
</head>
<!-- Composited body over the child div. -->
<!-- Background for the body element is not painted. ->
<!-- GraphicsLayer::contentsOpaque for the body layer should be false. -->
<body>
<!-- Box under the body. -->
<div id="underbody"></div>
<pre id="layertree"></pre>
</body>
</html>