Skip to content

Truly independent web browser

830 B
Raw Blame
<!DOCTYPE html>
<style>
    #target {
        display: grid;
        align-content: normal;
    }
</style>
<div id="target"></div>
<script src="../include.js"></script>
<script>
    test(() => {
        const animation = target.animate({ alignContent: ["normal", "center"] }, 100);
        animation.pause();

        animation.currentTime = 25;
        println(getComputedStyle(target).alignContent);

        animation.currentTime = 75;
        println(getComputedStyle(target).alignContent);

        const byComputedAnimation = target.animate({ zIndex: ["auto", "10"] }, 100);
        byComputedAnimation.pause();

        byComputedAnimation.currentTime = 25;
        println(getComputedStyle(target).zIndex);

        byComputedAnimation.currentTime = 75;
        println(getComputedStyle(target).zIndex);
    });
</script>