blob: 9cf87267028c1329394db7bfbc87fbc0fe3cf171 [file] [log] [blame]
<title>Perpendicular layer sorting</title>
<style type="text/css" media="screen">
#container {
position: relative;
height: 300px;
width: 300px;
margin: 50px 100px;
-webkit-perspective: 500;
#parent {
margin: 10px;
width: 280px;
height: 280px;
background-color: purple;
-webkit-transform-style: preserve-3d;
transform: rotateY(20deg);
#parent > div {
position: absolute;
top: 40px;
left: 40px;
width: 200px;
height: 400px;
padding: 10px;
background-color: green;
transform: translateY(50px) translateZ(10px) rotateX(90deg);
<script type="text/javascript" charset="utf-8">
if (window.testRunner)
<!-- The green layer should not overlap the purple layer -->
<div id="container">
<div id="parent">