mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update CSS tests to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab
This commit is contained in:
parent
1a81b18b9f
commit
2c9faf5363
91915 changed files with 5979820 additions and 0 deletions
|
@ -0,0 +1,45 @@
|
|||
<!DOCTYPE html>
|
||||
<html><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.htm" rel="match">
|
||||
<meta content="Asserts that the scaling is proportional to d/(d − Z) for a negative Z" name="assert">
|
||||
<style type="text/css">
|
||||
.container {
|
||||
position: absolute;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
top: 100px;
|
||||
left: 100px;
|
||||
perspective: 3px;
|
||||
}
|
||||
.redSquare {
|
||||
position: absolute;
|
||||
top: -25px;
|
||||
left: -25px;
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
background: red;
|
||||
transform: translateZ(-1px);
|
||||
}
|
||||
.greenSquare {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
background: green;
|
||||
transform: translateZ(0px);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if there is a green square and no red.</p>
|
||||
<div class="container">
|
||||
<div class="redSquare"></div>
|
||||
<div class="greenSquare"></div>
|
||||
</div>
|
||||
|
||||
</body></html>
|
Loading…
Add table
Add a link
Reference in a new issue