mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
68 lines
No EOL
2 KiB
HTML
68 lines
No EOL
2 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<meta charset="UTF-8">
|
|
<title></title>
|
|
<title>CSS Regions: 3D transform on named flow content with perspective()</title>
|
|
<link href="mailto:dalcala@adobe.com" rel="author" title="David Alcala">
|
|
<link href="mailto:rhauck@adobe.com" rel="reviewer" title="Rebecca Hauck"> <!-- 07-15-2013 -->
|
|
<link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help">
|
|
<link href="http://www.w3.org/TR/css3-regions/#flow-from" rel="help">
|
|
<link href="http://www.w3.org/TR/css-transforms-1/#three-d-transform-functions" rel="help">
|
|
<link href="reference/regions-transforms-016-ref.htm" rel="match">
|
|
<meta content="This test checks that a 3D transform is applied with perspective to named flow content." name="assert">
|
|
<style>
|
|
#region {
|
|
width: 300px;
|
|
height: 300px;
|
|
position: relative;
|
|
flow-from: f;
|
|
}
|
|
#named-flow {
|
|
width: 200px;
|
|
height: 200px;
|
|
margin: 0 auto 60px;
|
|
background-color: green;
|
|
flow-into: f;
|
|
transform: perspective(600px) rotateX(45deg);
|
|
}
|
|
#div-red-parent {
|
|
position: relative;
|
|
}
|
|
.div-red {
|
|
width: 48px;
|
|
height: 48px;
|
|
position: absolute;
|
|
background-color: red;
|
|
}
|
|
#div-red1 {
|
|
left: 64px;
|
|
top: 38px;
|
|
}
|
|
#div-red2 {
|
|
left: 191px;
|
|
top: 38px;
|
|
}
|
|
#div-red3 {
|
|
left: 48px;
|
|
top: 131px;
|
|
}
|
|
#div-red4 {
|
|
left: 207px;
|
|
top: 131px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>The test passes if you see a green trapezoid and no red.</p>
|
|
<!-- This test fails in WebKit. See this bug: https://bugs.webkit.org/show_bug.cgi?id=114293 -->
|
|
<div id="div-red-parent">
|
|
<div id="div-red1" class="div-red"></div>
|
|
<div id="div-red2" class="div-red"></div>
|
|
<div id="div-red3" class="div-red"></div>
|
|
<div id="div-red4" class="div-red"></div>
|
|
</div>
|
|
<div id="named-flow"></div>
|
|
<div id="region"></div>
|
|
|
|
|
|
</body></html> |