summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/3d-corners.html
blob: cfc0e7bd7f223220d76652332ab28b401920cde0 (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
51
52
53
54
55
56
57
58
59
60
<html>
<head>
  <style type="text/css" media="screen">
    .container {
      position: relative;
      height: 100px;
      width: 500px;
      margin: 50px 100px;
      border: 1px solid blue;
      -webkit-perspective: 10;
    }
    .parent {
      -webkit-transform-style: preserve-3d;
      transform:translateY(0.1%);
    }
    #div1
    {
      height:500px;
      background-color:green;
      -webkit-transform-origin: center top;
      transform:rotate3d(1,0,0,-45deg);
    }
    #div2
    {
      height:500px;
      background-color:green;
      -webkit-transform-origin: center top;
      transform:rotate3d(1,0,0,-150deg);
    }
    #div3
    {
      height:500px;
      background-color:green;
      -webkit-transform-origin: center top;
      transform:rotate3d(1,0,0,-167deg);
    }
  </style>
  <script type="text/javascript" charset="utf-8">
    if (window.testRunner)
      testRunner.dumpAsTextWithPixelResults();
  </script>
</head>
<body style="overflow:hidden">
  <div class="container">
    <div class="parent">
      <div id="div1"></div>
    </div>
  </div>
  <div class="container">
    <div class="parent">
      <div id="div2"></div>
    </div>
  </div>
  <div class="container">
    <div class="parent">
      <div id="div3"></div>
    </div>
  </div>
</body>
</html>