summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/z-order/negative-z-index.html
blob: 0dfe976b9adbe6030a4ca995f899ad91ebfc0bf7 (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 {
      height: 100px;
      width: 100px;
      background-color: blue;
    }
    .container {
      position: absolute;
      margin: 10px;
      left: 0;
      top: 0;
      z-index: -1;
      background-color: red;
    }

    .compositing {
      transform: translateZ(0);
    }

    .foreground {
      background-color: green;
    }
  </style>
</head>

<body>

  <div class="container box">
    <div class="compositing">
      <div class="foreground box"></div>
    </div>
  </div>

</body>
</html>