Skip to content

Truly independent web browser

662 B
Raw Blame
<!DOCTYPE html>
<script src="../include.js"></script>
<body>
<script>
    test(() => {
        for (const display of ["table-caption", "table-row", "table-cell", "table-row-group", "table-column"]) {
            const target = document.createElement("div");
            target.style.position = "absolute";
            target.style.display = display;
            target.textContent = "text";
            document.body.append(target);
            document.body.offsetWidth;
            target.remove();
            println(`${display} removed: the tree matches a full rebuild: ${internals.compareLayoutTreeWithFullRebuild().matches}`);
        }
    });
</script>