9 background-color: silver;
17 if (window
.testRunner
) {
18 testRunner
.dumpAsText();
19 testRunner
.waitUntilDone();
21 if (window
.internals
&& window
.eventSender
) {
22 window
.internals
.settings
.setPreferCompositingToLCDTextEnabled(true);
24 addEventListener("load", function() {
25 document
.getElementById("layerTree").innerText
= internals
.layerTreeAsText(document
);
27 window
.internals
.setPageScaleFactor(0.5);
28 setTimeout(function() {
29 document
.getElementById("layerTreeScaledDown").innerText
= internals
.layerTreeAsText(document
);
31 window
.internals
.setPageScaleFactor(1.5);
32 setTimeout(function() {
33 document
.getElementById("layerTreeScaledUp").innerText
= internals
.layerTreeAsText(document
);
34 testRunner
.notifyDone();
42 <!-- Fixed position elements may skip compositing without a scrollable
43 ancestor. To make sure this test covers the intended scenario, we force the
44 body element to be tall, so that the FrameView is scrolling. -->
45 <body style=
"width: 4000px; height: 4000px;">
46 <div style=
"height: 1000px">
48 <pre id=
"layerTree"></pre>
50 <pre id=
"layerTreeScaledDown"></pre>
52 <pre id=
"layerTreeScaledUp"></pre>
54 <!-- The layer tree should always be the same, regardless of page scale, except on platforms that enable the applyPageScaleFactorInCompositor Setting. -->
55 <!-- No layer in any case. -->
56 <div class=
"fixed" style=
"top: -100px"></div>
57 <!-- When applyPageScaleFactorInCompositor is true, this will have a composited layer when scaled down; no layer when not scaled or scaled up. -->
58 <div class=
"fixed"></div>
59 <div class=
"fixed" style=
"top: 0px; left: 1000px"></div>
60 <!-- When applyPageScaleFactorInCompositor is true, this will have composited layer when not scaled and scaled down; no layer scaled up. -->
61 <div class=
"fixed" style=
"top: 0px; left: 600px"></div>
62 <!-- Always has composited layer. -->
63 <div class=
"fixed" style=
"top: 0px; left: 0px"></div>