blob: fcd332b5aaeff0365fbf85dc2424daa94e50488a [file] [log] [blame]
<!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true contentMode=mobile ] -->
<html>
<head>
<meta name="viewport" content="initial-scale=1.0">
<style>
body {
width: 1300px;
height: 2000px;
}
.fixed {
position: fixed;
top: 10px;
left: 12px;
height: 100px;
width: 100px;
background-color: blue;
}
</style>
<script src="../../resources/ui-helper.js"></script>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
}
async function doTest()
{
await UIHelper.ensureStablePresentationUpdate();
let scrollingTree = await UIHelper.getScrollingTree();
document.getElementById('layers').textContent = scrollingTree;
testRunner.notifyDone();
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div class="fixed"></div>
<pre id="layers"></pre>
</body>
</html>