blob: d7f43ceb24c25af84d63a2415877fce29603b3c5 [file] [log] [blame]
<!DOCTYPE html> <!-- webkit-test-runner [ AsyncOverflowScrollingEnabled=true ] -->
<html>
<head>
<title>Scrolling tree should show slow-repaint reasons on the overflow and root nodes</title>
<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>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.addEventListener('load', () => {
if (window.internals)
document.getElementById('scrollingTree').innerText = window.internals.scrollingStateTreeAsText() + "\n";
}, false);
</script>
</head>
<body>
<div class="scroller">
<div class="scrolling-content">
Scrolling content
<div class="fixed-background">
Fixed background
</div>
</div>
</div>
<pre id="scrollingTree"></pre>
</body>
</html>