blob: f3fb0a4f57425ce8e29d0db26ef2ae5215c45ce6 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 100px;
height: 3500px;
background-image: url('resources/simple_image.png');
background-size: 200px 200px;
background-attachment: fixed;
background-repeat: no-repeat;
background-position: bottom right;
}
.test {
height: 400px;
width: 600px;
background-color: rgba(0, 0, 0, 0.5);
border: 20px solid orange;
}
#layers {
opacity: 0;
}
</style>
<script>
if (window.testRunner) {
testRunner.dumpAsTextWithPixelResults();
window.internals.settings.setForceCompositingMode(true);
window.internals.settings.setAcceleratedCompositingForFixedRootBackgroundEnabled(true);
}
function doTest()
{
window.scrollTo(0, 200);
if (window.internals)
document.getElementById('layers').innerText = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_ROOT_LAYER);
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div class="test"></div>
<pre id="layers"></pre>
</body>
</html>