blob: 4e9d1dea033c8d286310448cfedee7a5d0936970 [file] [log] [blame]
#container {
-webkit-transform: translate(-10px, 0px);
#indicator {
position: absolute;
left: 15px;
top: 0px;
height: 256px;
width: 256px;
background-color: red;
#green {
position: absolute;
left: 0px;
top: 0px;
width: 300px;
height: 300px;
background-color: green;
#composited {
position: absolute;
left: 400px;
#layertree {
position: absolute;
left: 10000px;
top: 0px;
body {
overflow: hidden;
if (window.testRunner) {
window.addEventListener('load', function() {
document.getElementById("layertree").innerText = window.internals.layerTreeAsText(document);
}, false);
<div id="container">
<!-- This red square should not be visible -->
<div id="indicator"></div>
<div id="composited"></div>
<!-- This green square should render completely on top of the red one -->
<div id="green"></div>
<pre id="layertree"></pre>