Files
ladybird/Tests/LibWeb/Layout/input/layout-tree-update/dialog-removal.html
Luke Wilde 11a1e97e40 LibWeb: Invalidate layout tree after removing element from top layer
Otherwise the layout tree will still contain the top layer element(s).

Fixes Steam Events & Announcements `<dialog>` modal visually not fully
disappearing upon removal.
2025-10-19 16:58:47 +02:00

13 lines
305 B
HTML

<!DOCTYPE html>
<body>
</body>
<script>
const dialog = document.createElement("dialog");
dialog.innerText = "hello world";
document.body.appendChild(dialog);
dialog.showModal();
document.body.offsetWidth;
document.body.removeChild(dialog);
document.body.offsetWidth;
</script>