blob: c3273b289cb90b159b9099f68d83260efef64b94 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.container {
margin: 50px;
height: 300px;
width: 300px;
border: 1px solid black;
perspective: 500px;
}
.transformed {
width: 100%;
height: 100%;
background-color: blue;
transform: rotateY(145deg);
-webkit-backface-visibility: hidden;
}
.transformed.changed {
-webkit-backface-visibility: visible;
}
</style>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
window.addEventListener('load', () => {
setTimeout(() => {
document.querySelector('.transformed').classList.add('changed');
if (window.testRunner)
testRunner.notifyDone();
}, 1000);
}, false);
</script>
</head>
<body>
<div class="container">
<div class="transformed"></div>
</div>
</body>
</html>