blob: ff878f2810c345dd088f7fa749c604442096b1d3 [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)
window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
if (window.testRunner) {
testRunner.dumpAsText();
window.addEventListener("load", function() {
document.getElementById("mainThreadScrollingReasons").innerText = window.internals.mainThreadScrollingReasons();
}, 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>