summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/composited-negative-zindex-child.html
blob: 0686e701170a33ec75c67987a4a22e06a4d957c6 (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
<!DOCTYPE html>

<html>
<head>
  <style type="text/css" media="screen">
    .box {
      height: 100px;
      width: 100px;
      position: absolute;
      z-index: 0;
    }
    
    .parent {
      border: 1px solid black;
    }
    
    .child {
      top: 10px;
      left: 10px;
      background-color: silver;
      z-index: -1;
    }
  </style>
  <script type="text/javascript" charset="utf-8">
    if (window.testRunner)
      testRunner.dumpAsText();

    function doTest() {
      document.getElementById('child').style.webkitTransform = 'translateZ(0)';
    }
    window.addEventListener('load', doTest, false);
  </script>
</head>
<body>
  <p>This test should not assert in debug builds.</p>
  <div class="parent box">
    <div id="child" class="child box"></div>
  </div>
</body>
</html>