blob: 6064f2fb94604cf28956e14e99c400046579c0e8 [file] [log] [blame]
<!DOCTYPE html>
Check that removing the preserve-3d attribute from a layer has the intended
effect. See
Passing criteria: green box shown without any visible red.
<style type="text/css" media="screen">
body {
-webkit-perspective: 400px;
.transformed-container {
-webkit-transform-style: preserve-3d;
transform: rotateX(90deg);
.reverse-transformed-child {
transform: rotateX(-90deg);
.box {
width: 100px;
height: 100px;
.indicator {
background: red;
.test {
position: absolute;
transform: translateZ(0);
background: green;
<script type="text/javascript">
function doTest() {
if (window.testRunner) {
window.setTimeout(function() {
document.getElementById('container').style.webkitTransformStyle = 'flat';
if (window.testRunner)
}, 0);
window.addEventListener('load', doTest);
<div class="test box"></div>
<div id="container" class="transformed-container box">
<div class="reverse-transformed-child indicator box"></div>