blob: e45f6a60f656ad4652eceded5750166e1db37c29 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
#indicator {
position: absolute;
top: 20px;
left: 20px;
width: 200px;
height: 200px;
background-color: red;
}
.composited {
-webkit-transform: translateZ(0);
}
.container {
position: absolute;
top: 20px;
left: 20px;
}
.solid-background {
position: relative;
float: left;
width: 200px;
height: 200px;
background-color: green;
z-index: 0;
}
#scrollable {
width: 100%;
height: 100%;
overflow: hidden;
}
.opaque {
background-color: gray;
width: 100%;
height: 100%;
}
.non-opaque {
background-color: transparent;
width: 100%;
height: 100%;
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.addEventListener('load', function() {
document.getElementById('scrollable').scrollTop = 200;
if (window.testRunner && window.internals)
document.getElementById('layertree').innerText = window.internals.layerTreeAsText(document);
}, false);
</script>
</head>
<body>
<div class="composited container">
<div class="solid-background">
<div id="scrollable">
<div class="opaque">
</div>
<div class="non-opaque">
</div>
</div>
</div>
</div>
<pre id="layertree"></pre>
</body>
</html>