summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/layer-creation/translatez-overlap.html
blob: 5180578820e2ced6edbe0716185e68e118b51136 (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
<!DOCTYPE html>
<html>
<head>
  <style type="text/css" media="screen">
    .box {
      position: relative;
      width: 100px;
      height: 100px;
      background-color: blue;
      margin: 10px;
    }
    
    .composited {
      transform: translateZ(0);
    }
  </style>
  <script type="text/javascript" charset="utf-8">
   if (window.testRunner)
     testRunner.dumpAsText();

   function doTest()
   {
       if (window.testRunner) {
         document.getElementById('results').innerText = window.internals.layerTreeAsText(document);
         testRunner.notifyDone();
       }
   }
   
   window.addEventListener('load', doTest, false);
  </script>
</head>
<body>
  <div class="composited box"></div>
  <!-- The second box should not be composited. -->
  <div class="box"></div>
  <pre id="results">Layer tree goes here in DRT.</pre>
</body>
</html>