10 background-color: silver;
14 <script type=
"text/javascript">
16 window
.internals
.settings
.setPreferCompositingToLCDTextEnabled(true);
18 if (window
.testRunner
) {
19 testRunner
.dumpAsText();
21 window
.addEventListener("load", function() {
22 document
.getElementById("layertree").innerText
= window
.internals
.layerTreeAsText(document
);
29 <div style=
"height: 1000px">
30 <pre id=
"layertree"></pre>
33 <!-- Neither of the following elements gets its own layer. -->
34 <div class=
"fixed" style=
"z-index: -1"></div>
35 <div class=
"fixed" style=
"z-index: -1; top: -100px"></div>
36 <div class=
"fixed" style=
"z-index: -1; top: 0px; left: 1000px"></div>
38 <!-- This element gets its own layer because it intersects with the viewport. -->
39 <div class=
"fixed" style=
"z-index: -1; top: 0px; left: 0px"></div>