mirror of
https://github.com/servo/servo.git
synced 2025-06-28 02:53:48 +01:00
37 lines
No EOL
1.3 KiB
HTML
37 lines
No EOL
1.3 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
||
<title>CSS Transforms Test: perspective property</title>
|
||
<link href="mailto:anduga@gmail.com" rel="author" title="Andres Ugarte" />
|
||
<link href="http://www.w3.org/TR/css-transforms-1/#perspective-property" rel="help" />
|
||
<link href="http://www.w3.org/TR/css-transforms-1/#transform-property" rel="help" />
|
||
<link href="reference/perspective-reftest.xht" rel="match" />
|
||
<meta content="Asserts that the scaling is proportional to d/(d − Z) for a positive Z" name="assert" />
|
||
<style type="text/css">
|
||
.redContainer {
|
||
position: absolute;
|
||
width: 150px;
|
||
height: 150px;
|
||
top: 100px;
|
||
left: 100px;
|
||
perspective: 3px;
|
||
background: red;
|
||
}
|
||
.greenSquare {
|
||
position: absolute;
|
||
top: 25px;
|
||
left: 25px;
|
||
width: 100px;
|
||
height: 100px;
|
||
background: green;
|
||
transform: translateZ(1px);
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<p>The test passes if there is a green square and no red.</p>
|
||
<div class="redContainer">
|
||
<div class="greenSquare"></div>
|
||
</div>
|
||
|
||
|
||
</body></html> |