blob: f77caa4f47b9ddcef0f5c0745d45b82e7c82a2de [file] [log] [blame]
<!DOCTYPE html> <!-- webkit-test-runner [ AsyncOverflowScrollingEnabled=true AsyncFrameScrollingEnabled=true ] -->
<html>
<head>
<title>Slow-scrolling reasons should not escape the iframe boundary</title>
<style>
body {
height: 2000px;
}
iframe {
width: 500px;
height: 400px;
border: 1px solid black;
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.addEventListener('load', () => {
if (window.internals)
document.getElementById('scrollingTree').innerText = window.internals.scrollingTreeAsText() + "\n";
}, false);
</script>
</head>
<body>
<iframe srcdoc="
<style>
.scroller {
background-color: silver;
border: 1px solid black;
padding: 10px;
width: 400px;
height: 300px;
overflow: scroll;
}
.scrolling-content {
height: 1000px;
}
.fixed-background {
margin-top: 100px;
width: 400px;
height: 300px;
background-image: linear-gradient(green, blue);
background-attachment: fixed;
}
</style>
<div class=scroller>
<div class=scrolling-content>
Scrolling content
<div class=fixed-background>
Fixed background
</div>
</div>
</div>
"></iframe>
<pre id="scrollingTree"></pre>
</body>
</html>