mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
40 lines
1.4 KiB
HTML
40 lines
1.4 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 Test (Transforms): 'perspective' and 'opacity'</title>
|
|
<link href="mailto:mwoodrow@mozilla.com" rel="author" title="Matt Woodrow" />
|
|
<link href="mailto:ayg@aryeh.name" rel="author" title="Aryeh Gregor" />
|
|
<link href="http://www.w3.org/TR/css-transforms-1/#perspective-property" rel="help" />
|
|
<meta content="This tests for a real-world implementation
|
|
bug: see <https://bugzilla.mozilla.org/show_bug.cgi?id=707563>. The only
|
|
difference between the test and reference is 'opacity: 0.9999', which should
|
|
not affect anything in the test." name="assert" />
|
|
<link href="reference/transform3d-rotatex-perspective-ref.xht" rel="match" />
|
|
<link href="reference/transform3d-rotatex-perspective-notref.xht" rel="mismatch" />
|
|
<style>
|
|
#container {
|
|
position: relative;
|
|
height: 300px;
|
|
width: 300px;
|
|
margin: 50px 100px;
|
|
border: 2px solid blue;
|
|
|
|
perspective: 500px;
|
|
opacity: 0.9999;
|
|
}
|
|
#parent {
|
|
margin: 10px;
|
|
width: 280px;
|
|
height: 280px;
|
|
background-color: #844BCA;
|
|
|
|
transform: rotateY(40deg);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="container">
|
|
<div id="parent"></div>
|
|
</div>
|
|
|
|
|
|
</body></html> |