summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/columns/composited-in-paginated.html
blob: 87d9936120c9a271247c5a3e251973e2cd6ce012 (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
40
41
<html style="overflow: -webkit-paged-x;">
<head>
    <script>
        if (window.testRunner)
          testRunner.dumpAsText();

        function dumpLayers()
        {
            if (window.testRunner)
                document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
        }
        window.addEventListener('load', dumpLayers, false);
    </script>
    <style>
    .spacer {
      height: 350px;
      width: 100%;
      margin: 10px;
      background-color: silver;
    }

    .box {
      height: 100px;
      width: 100px;
      margin: 10px;
      background-color: blue;
    }
    .composited {
      transform: translateZ(0);
    }
    </style>
</head>
<body>

  <div class="spacer"></div>
  <div class="spacer"></div>
  <div class="composited box"></div>
<pre id="layers">Layer tree goes here in DRT</pre>

</body>
</html>