blob: 276f1ced37ad3f264cd48d195c9b03fc553d0fa5 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.fixed {
position: fixed;
width: 10px;
height: 10px;
z-index: -1;
background-color: silver;
}
</style>
<script type="text/javascript">
if (window.internals) {
internals.settings.setPreferCompositingToLCDTextEnabled(true);
internals.settings.setThreadedScrollingEnabled(true);
}
if (window.testRunner) {
testRunner.dumpAsText();
window.addEventListener("load", function() {
document.getElementById("mainThreadScrollingReasons").innerText = internals.mainThreadScrollingReasons(document);
}, false);
}
</script>
</head>
<body>
<div style="height: 1000px">
Main thread scrolling reasons should be blank:
<pre id="mainThreadScrollingReasons"></pre>
</div>
<!-- out of view fixed position elements should not trigger main thread scrolling. -->
<div class="fixed"></div>
<div class="fixed" style="top: -100px"></div>
<div class="fixed" style="top: 0px; left: 1000px"></div>
</body>
</html>