blob: fd9e8115ac271bf22a6f8707e3fdcde29c92f6bc [file] [log] [blame]
<body>
<style>
body {
background-color: red;
}
div {
position: absolute;
top: 0;
left: 0;
width: 400px;
height: 400px;
background-color: green;
transform-origin: top left;
transform: scale(0.5);
}
</style>
<div></div>
<script src="../resources/ui-helper.js"></script>
<script>
(async function() {
if (window.testRunner)
testRunner.waitUntilDone();
await UIHelper.renderingUpdate();
document.querySelector("div").animate({ transform: "scale(1)" }, { duration: 2000, easing: "cubic-bezier(0, 200, 1, 200)" });
await Promise.all(document.getAnimations().map(animation => animation.ready));
await UIHelper.ensurePresentationUpdate();
await UIHelper.renderingUpdate();
if (window.testRunner)
testRunner.notifyDone();
})();
</script>
</body>