blob: e215c85b1a12d67a6e99bec2e03bb87119b9b221 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.fixed {
position: fixed;
width: 10px;
height: 10px;
top: 100px;
background-color: silver;
}
</style>
<script type="text/javascript">
if (window.testRunner && window.internals) {
testRunner.dumpAsText();
internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
addEventListener("load", function() {
var fixed = document.createElement("div");
document.body.appendChild(fixed);
document.body.offsetHeight;
fixed.className = "fixed";
var mainThreadScrollingReasons = internals.mainThreadScrollingReasons();
document.getElementById("result").innerText = !mainThreadScrollingReasons ? "PASS" : "FAIL: " + mainThreadScrollingReasons;
}, false);
}
</script>
</head>
<body>
<pre id="result"></pre>
</body>
</html>