Skip to content

Truly independent web browser

655 B
Raw Blame
<!DOCTYPE html>
<script src="../include.js"></script>
<style>
    @keyframes first { from, to { margin-left: 10px; } }
    @keyframes second { from, to { margin-left: 20px; } }
    @keyframes third { from, to { margin-left: 30px; } }

    #target::before {
        content: "pseudo";
        animation: first 1s both, second 1s both, third 1s both;
    }
</style>
<div id="target"></div>
<script>
    test(() => {
        for (const animation of target.getAnimations({ subtree: true })) {
            animation.pause();
            animation.currentTime = 500;
        }
        println(getComputedStyle(target, "::before").marginLeft);
    });
</script>