Skip to content

Truly independent web browser

749 B
Raw Blame
<!DOCTYPE html>
<script src="../include.js"></script>

<div id="root"></div>

<script>
    asyncTest(done => {
        setTimeout(() => {
            let current = root;
            for (let i = 0; i < 24; ++i) {
                const child = document.createElement("div");
                current.appendChild(child);
                current = child;
            }

            getComputedStyle(current).color;
            const animation = root.animate([{ color: "red" }, { color: "blue" }], {
                duration: 1000,
            });
            animation.pause();
            animation.currentTime = 500;

            println(`deep child color: ${getComputedStyle(current).color}`);

            done();
        }, 100);
    });
</script>