summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/squashing/transform-squashed-owner-expected.html
blob: 203e0af7fcb1e320081e9cc5587ba3c27c362ae6 (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
<!DOCTYPE html>
<html>
<head>
  <style>
    .set {
      position: absolute;
      top: 8px;
    }
    .box {
      height: 100px;
      width: 100px;
      background-color: lightblue;
    }
    .squashed {
      height: 40px;
      width: 40px;
      background-color: lightgreen;
      position: absolute;
      left: 16px;
    }
    .composited {
      transform: translateZ(0px);
    }
    .rotated { rotate(10deg);
    }
  </style>
</head>
<body>
    <!-- This div will be the "owner" of the squashing layer -->
    <div class="composited rotated box"></div>
    <div id="target" class="squashed" style="top: 4px"></div>
    <div class="squashed" style="top: 54px"></div>
</body>
</html>