mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
37 lines
1.1 KiB
HTML
37 lines
1.1 KiB
HTML
<!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> |