blob: 0dee5691dc4ca0be753d8de8c9ceb847a87c70b9 [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;
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>