blob: 8a05260744e585a53bf34d7034691dec59a2ca4e (
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
|
<!DOCTYPE html>
<html><head>
<title>CSS Transforms Test: transform property with rotateY function</title>
<link href="mailto:codedancerhua@gmail.com" rel="author" title="Noah Lu">
<link href="http://www.w3.org/TR/css-transforms-1/#transform-property" rel="help">
<link href="http://www.w3.org/TR/css-transforms-1/#funcdef-rotate" rel="help">
<link href="reference/css3-transform-rotateY-ref.htm" rel="match">
<meta content="box width should be equal to projection width if transform rotateY applied" name="assert">
<style type="text/css">
.red,
.green{
width:198px;
height: 200px;
background-color:green;
position: absolute;
top: 50px;
left:51px;
z-index:10;
}
.red{
background-color:red;
width: 140px;
left:80px;
z-index:9;
}
.green{
transform:rotateY(45deg);
}
</style>
</head>
<body>
<p>The test passes if there is a green rectangle and no red.</p>
<div class="green"></div>
<div class="red"></div>
</body></html>
|