28 background-color: red;
32 background-color: lime;
36 -webkit-transform: translatez(0);
40 <script type="text/javascript">
42 window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
44 if (window.testRunner) {
45 testRunner.dumpAsText();
47 window.addEventListener("load", function() {
48 document.getElementById("layertree").innerText = window.internals.layerTreeAsText(document);
54 <body class="unscrollable">
55 <div style="height: 4000px">
56 <p>Even though we can opt-out of fixed-position compositing for
57 unscrollable fixed-position containers, we still need to composite
58 fixed-position layers that need compositing for other reasons such as
60 <pre id="layertree"></pre>
63 <div class="absolute composited red box"></div>
65 <!-- This should be composited because it overlaps a composited layer. -->
66 <div class="fixed lime box"></div>