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