Skip to content

Truly independent web browser

571 B
Raw Blame
<!DOCTYPE html>
<script src="../include.js"></script>
<style>
    div { width: 120px; min-height: 30px; background: lightblue; }
</style>
<div><span id="target" style="position: relative">positioned inline<div style="position: absolute; left: -200px; top: 300px">absolute</div></span></div>
<script>
    test(() => {
        internals.recordDisplayListForTesting(false, true);
        target.style.left = "100px";
        internals.recordDisplayListForTesting(false);
        internals.recordDisplayListForTesting(false, true);
        println("PASS");
    });
</script>