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