blob: f1a6933f3f18e547e817df714545e8771f753f0a [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;
-webkit-transform: rotateX(90deg);
.reverse-transformed-child {
-webkit-transform: rotateX(-90deg);
.box {
width: 100px;
height: 100px;
.indicator {
background: red;
.test {
position: absolute;
-webkit-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>