blob: 147a2237ddf59405f8be34fbfcf377c886e114f1 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.transform {
width: 100px;
height: 30px;
-webkit-transform: translateZ(0);
}
.fixed {
position: fixed;
left: 10px;
top: 10px;
}
</style>
<script type="text/javascript">
if (window.internals)
window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
if (window.testRunner) {
testRunner.dumpAsText();
window.addEventListener("load", function() {
document.getElementById("layerTree").innerText = window.internals.layerTreeAsText(document);
document.getElementById("synchronousScrollingReasons").innerText = window.internals.synchronousScrollingReasons();
}, false);
}
</script>
</head>
<body>
<div class="transform">
<!-- This element should neither be composited nor force main thread scrolling. -->
<div class="fixed">TEST</div>
</div>
<pre id="layerTree"></pre>
<pre id="synchronousScrollingReasons"></pre>
</body>
</html>