blob: 2ed7b1b48092c68cb220ba1b0f4a5bdd6c7f3396 (
plain) (
blame)
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
|
<!DOCTYPE html>
<html><head>
<title>CSS Transforms Reference File</title>
<link href="mailto:jian.andy.zhang@gmail.com" rel="author" title="Jian Zhang">
<style type="text/css">
.greenSquare {
position: absolute;
top: 50px;
left: 50px;
width: 100px;
height: 100px;
background: green;
z-index: 2;
}
.card {
transform-style: preserve-3d;
}
.container {
width: 200px;
height: 200px;
perspective: 1000;
transform: rotateY(45deg);
}
</style>
</head>
<body>
<p>The test passes if there is a green retangle and no red.</p>
<div class="container">
<div class="card">
<div class="greenSquare face"></div>
</div>
</div>
</body></html>
|