summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/overflow/resize-painting.html
blob: 6e395efb7a511f601f31ddb262ee68a58bb0d72c (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
34
35
36
37
38
39
<!DOCTYPE html>
<html>
<head>
  <style>
  .composited {
    transform: translateZ(0);
  }
  
  .box {
    margin: 10px;
    width: 100px;
    height: 100px;
    z-index: 0;
  }

  .resizable {
    overflow: auto;
    resize: both;
  }
  </style>
  <script type="text/javascript" charset="utf-8">
    if (window.testRunner)
        testRunner.dumpAsText();

    function doTest()
    {
        if (window.testRunner)
          document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
    }
    
    window.addEventListener('load', doTest, false);
  </script>
  </head>
<body>
  <!-- You should see the resize widget in this element -->
  <div class="resizable composited box"></div>
  <pre id="layers">Layer tree appears here in DRT.</pre>
</body>
</html>