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