blob: 68aa75b4ff11f598dc45f6064371ed687c65f0b6 [file] [log] [blame]
#container {
position: absolute;
top: 0px;
left: 400px;
-webkit-transform: translateZ(0);
#red {
position: absolute;
top: 0px;
left: -400px;
height: 256px;
width: 256px;
background-color: red;
#green {
position: absolute;
left: 0px;
top: 0px;
width: 300px;
height: 300px;
background-color: green;
#layertree {
position: absolute;
left: 10000px;
top: 0px;
body {
overflow: hidden;
if (window.testRunner) {
window.addEventListener('load', function() {
if (window.testRunner) {
document.getElementById("layertree").innerText = window.internals.layerTreeAsText(document);
}, false);
<!-- container has empty bounds, but is composited -->
<div id="container">
<!-- this red square should not appear over the green square -->
<div id="red"></div>
<!-- This green square should composite because it overlaps the red one -->
<div id="green"></div>
<pre id="layertree"></pre>