summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/layer-creation/overlap-negative-z-index-expected.html
blob: 17253ec096adce4ccf32d79b34b92c316f916c55 (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
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html>
<head>
<style>
  .box {
    width: 100px;
    height: 100px;
  }

  .red {
    background-color: red;
  }

  .lime {
    background-color: lime;
  }

  .behind {
    position: absolute;
    top: 100px;
    left: 100px;
  }

  .ontop {
    position: absolute;
    top: 100px;
    left: 100px;
  }

  #layertree {
    position: absolute;
    left: 10000px;
    top: 0px;
  }

  body {
    overflow: hidden;
  }

</style>
</head>

<body>
  <!-- This red div should be completely underneath the green div -->
  <div class="red box behind"> </div>
  <!-- This lime colored div should correctly detect overlap and become composited. -->
  <div class="lime box ontop"> </div>
</body>

</html>