blob: 251da80aac2809ad81f7862a62be283f572bb73f [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
html {
perspective: 1200px;
background-color: red;
}
html.changed {
background-color: transparent;
}
body {
transform: translateZ(0);
}
.box {
width: 100px;
height: 100px;
background-color: blue;
}
</style>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
function doTest()
{
window.setTimeout(function() {
document.documentElement.className = 'changed';
if (window.testRunner)
testRunner.notifyDone();
}, 0);
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<p>In a pixel test, you should see a plain white background.</p>
</body>
</html>