summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/iframes/iframe-composited-scrolling.html
blob: 3035a531695ff7ca871ab344f1b68de73d5e6566 (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
<!DOCTYPE html>
<html>
<head>
  <style>
    iframe {
      height: 150px;
      width: 150px;
    }
  </style>
  <script>
    if (window.internals) {
      internals.settings.setPreferCompositingToLCDTextEnabled(true);
    }
    function doTest()
    {
      if (window.testRunner) {
        testRunner.dumpAsText();
        if (window.internals)
          document.getElementById("result").innerText = window.internals.nonFastScrollableRects(document).length ? "FAIL" : "PASS";
      }
    }
    window.addEventListener("load", doTest, false);
  </script>
</head>
<body>
  <iframe id="scrollable-iframe" src="resources/subframe.html" style="width: 100px; height: 100px"></iframe>
  <iframe id="non-scrollable-iframe" src="resources/subframe.html" style="width: 2000px; height: 2000px"></iframe>
  <pre id="result"></pre>
</body>
</html>