summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/layer-creation/main-thread-scrolling-for-non-composited-fixed-position-if-overflow-hidden.html
blob: 11d5f893a83705e41db5ce5abcb5224bf4a0c7c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html>
<head>
  <style>
    .fixed {
      position: fixed;
      left: 10px;
      top: 10px;
    }
  </style>

  <script>
    if (window.internals)
      window.internals.settings.setPreferCompositingToLCDTextEnabled(false);

    if (window.testRunner) {
      testRunner.dumpAsText();

      window.addEventListener("load", function() {
        document.getElementById("layerTree").innerText = window.internals.layerTreeAsText(document);
        document.getElementById("mainThreadScrollingReasons").innerText = window.internals.mainThreadScrollingReasons(document);
      }, false);
    }
  </script>
</head>

<body style="height: 5000px; overflow:hidden">
  <div class="fixed">TEST</div>

  <pre id="layerTree"></pre>
  <pre id="mainThreadScrollingReasons"></pre>
</body>
</html>