blob: 06f1ba7e56f667c6123aad9da57d6e26545ef070 [file] [log] [blame]
<!DOCTYPE html>
body {
height: 5000px;
#indicator {
width: 256px;
height: 256px;
background-color: red;
position: fixed;
left: 100px;
top: 100px;
#overlap {
width: 500px;
height: 500px;
background-color: green;
position: fixed;
left: 0px;
top: 0px;
function doTest() {
window.scrollTo(0, 1000);
if (window.testRunner) {
document.getElementById('layertree').innerText = window.internals.layerTreeAsText(document);
window.addEventListener("load", doTest, false);
<!-- the red indicator should be covered by the green overlap element -->
<div id="indicator"></div>
<div id="overlap"></div>
<pre id="layertree"></pre>