Skip to content

Truly independent web browser

803 B
Raw Blame
<!DOCTYPE html>
<script src="../../include.js"></script>
<style>
    #target { z-index: sibling-index(); }
    #stable { color: rgb(4, 5, 6); }
</style>
<div id="parent">
    <span id="removed"></span>
    <span id="stable"></span>
    <span id="target"></span>
</div>
<script>
    test(() => {
        const removed = document.getElementById("removed");
        const stable = document.getElementById("stable");
        const target = document.getElementById("target");
        internals.updateStyle();

        removed.remove();
        internals.updateStyle();

        const targetIndex = getComputedStyle(target).zIndex;
        const stableColor = getComputedStyle(stable).color;

        println("target index: " + targetIndex);
        println("stable color: " + stableColor);
    });
</script>