blob: 376e2f2311c0a074fe5e622159fdc492affd061f [file] [log] [blame] [edit]
<!DOCTYPE html> <!-- webkit-test-runner [ OverlayRegionsEnabled=true AsyncOverflowScrollingEnabled=true AsyncFrameScrollingEnabled=true ContentInsetBackgroundFillEnabled=false ] -->
<html>
<head>
<meta charset="utf-8" />
<style>
body { margin: 0; padding: 0; font-family: -apple-system; }
h1, h2 { margin: 0; padding: 0; line-height: 50px; }
h2 { font-size: 1.1em; }
.fixed-link {
position: fixed;
display: block;
bottom: 2rem;
right: 2rem;
width: 150px;
height: 150px;
background: #F67280;
z-index: 100;
text-indent: -7500px;
}
.long {
position: relative;
height: 1000px;
background: #355C7D;
}
.long::before {
content: "↓";
color: white;
font-size: 20em;
text-align: center;
position: absolute;
top: 400px;
left: 0;
right: 0;
}
</style>
<script src="../resources/ui-helper.js"></script>
<script src="./overlay-region-helper.js"></script>
</head>
<body>
<section id="test">
<a href="#" class="fixed-link">Fixed</a>
<div class="long">
</div>
<div class="long">
</div>
<div class="long">
</div>
<div class="long">
</div>
<div class="long">
</div>
<div class="long">
</div>
<div class="long">
</div>
</section>
<pre id="results"></pre>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
}
window.onload = async function () {
if (!window.internals)
return;
await UIHelper.ensureStablePresentationUpdate();
results.textContent = filterUIViewTree(await UIHelper.getUIViewTree());
document.getElementById('test').remove();
testRunner.notifyDone();
};
</script>
</body>
</html>