0001%, to {
        width: 200px;
        height: 200px;
        transform: translate(50%, 50%);
    }
}

</style>
</head>
<body>
<div></div>
<script>
(async function() {
    await Promise.all(document.getAnimations().map(animation => animation.ready));
    await new Promise(requestAnimationFrame);
    await new Promise(requestAnimationFrame);
    takeScreenshot();
})();
</script>
</body>
</html>