summaryrefslogtreecommitdiffstats
path: root/layout/reftests/transform-3d/split-intersect2.html
blob: 345e4a56306d8428dc6b25a10663a42a0bf77f43 (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>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>Split intersect 2</title>

<style>
.container {
  margin: 0 0;
  width: 400px;
  height: 400px;

  transform-style: preserve-3d;
}

.shape {
  margin: 0 0;
  position: absolute;

  width: 30px;
  height: 100px;
}

.red {
  background-color: rgba(255,0,0,1);
  transform: translate(100px, 100px) rotateZ(90deg) rotateY(60deg);
}

.green {
  background-color: rgba(0,255,0,1);
  transform: translate(80px, 100px);
}

.blue {
  background-color: rgba(0,0,255,1);
  transform: translate(120px, 100px);
}
</style>
</head>

<body>
  <div class="container">
    <div class="shape red"></div>
    <div class="shape green"></div>
    <div class="shape blue"></div>
  </div>
</body>
</html>