blob: 37416aa35cc6d7eda8d8ba2407cea9c42e958c94 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>CSS Test (Transforms): Simple Sorting With Preserve-3D on
Grandparent</title>
<link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name">
<link rel="help" href="http://www.w3.org/TR/css-transforms-2/#transform-style-property">
<link rel="help" href="http://www.w3.org/TR/css-transforms-2/#3d-transform-rendering">
<meta name="assert" content="This is the same as
transform3d-sorting-003.html, except with two wrapper divs.
'transform-style: preserve-3d' only affects children, not grandchildren, so
the two divs with backgrounds are still in different rendering contexts and
the Z-position should still not affect stacking.">
<link rel="match" href="transform-lime-square-ref.html">
</head>
<body>
<div style="transform-style: preserve-3d">
<div>
<div style="width: 100px; height: 100px; background: red;
transform: translatez(10px)"></div>
<div style="width: 100px; height: 100px; background: lime;
transform: translatez(-10px) translatey(-100px)"></div>
</div>
</div>
</body>
</html>