Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / layer-creation / fixed-position-out-of-view-scaled.html
blob5e21eccaef4b30d80dffeaa9c7b742d8505657dd
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 .fixed {
6 position: fixed;
7 width: 10px;
8 height: 10px;
9 background-color: silver;
11 ::-webkit-scrollbar {
12 width: 0px;
13 height: 0px;
15 </style>
16 <script>
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();
35 }, 0);
36 }, 0);
37 }, false);
39 </script>
40 </head>
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">
47 Not scaled:
48 <pre id="layerTree"></pre>
49 Scale=0.5:
50 <pre id="layerTreeScaledDown"></pre>
51 Scale=1.5:
52 <pre id="layerTreeScaledUp"></pre>
53 </div>
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>
64 </body>
65 </html>