Skip to content

Truly independent web browser

552 B
Raw Blame
<!DOCTYPE html>
<script src="../../include.js"></script>
<style>
    #target[style] + #reaction { color: green; }
</style>
<span id="target"></span>
<span id="reaction"></span>
<script>
    test(() => {
        const target = document.getElementById("target");
        const reaction = document.getElementById("reaction");
        internals.updateStyle();

        target.style.color = "blue";
        println("target color: " + getComputedStyle(target).color);
        println("reaction color: " + getComputedStyle(reaction).color);
    });
</script>