Skip to content

Truly independent web browser

586 B
Raw Blame
<!DOCTYPE html>
<script src="../../include.js"></script>
<style>
    .guard .rare { color: green }
</style>
<div id="root"></div>
<script>
    test(() => {
        const root = document.getElementById("root");
        for (let index = 0; index < 1100; ++index)
            root.appendChild(document.createElement("div"));
        root.lastElementChild.className = "rare";

        internals.updateStyle();
        root.classList.add("guard");
        internals.updateStyle();

        println(`rare subject updated: ${getComputedStyle(root.lastElementChild).color}`);
    });
</script>