summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/squashing/transform-squashed-owner.html
blob: b95dba78ebde465fff5f83f10b2a71242e69106f (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
<!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;
    }
    .rotated {
      rotate(10deg);
    }
  </style>
</head>
<body>
    <!-- This test checks that transforming the owner of a squashed layer only transforms that layer, and not the squashed layers. -->

    <!-- This div will be the "owner" of the squashing layer -->
    <div id="target" class="box"></div>
    <!-- These divs will be squashed into a layer containing them and the owner -->
    <div class="squashed" style="top: 4px"></div>
    <div class="squashed" style="top: 54px"></div>
</body>
  <script>
      document.getElementById("target").classList.add("rotated");

  </script>
</html>