blob: 3eba89938d01f3e57e144905d000adbbce70cfb2 [file] [log] [blame] [edit]
<!DOCTYPE html>
<html>
<head>
<style>
.underlay {
position: fixed;
width: 1024px;
height: 1042px;
background-color: rgba(0, 0, 0, 0.9);
}
.image {
position: relative;
width: 100px;
height: 100px;
background-color: green;
}
</style>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
if (window.internals)
window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
async function doTest()
{
if (window.testRunner) {
await testRunner.setPageScaleFactor(3, 0, 0);
document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
testRunner.notifyDone();
}
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div class="underlay"></div>
<div class="image">Image</div>
<pre id="layers"></pre>
</body>
</html>