1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 06:18:12 +00:00

LibWeb: Invalidate the layout tree on DOM node insertion

This commit is contained in:
Andreas Kling 2023-06-06 06:51:17 +02:00
parent f081a89cd9
commit 3cea86632d
3 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,8 @@
<script src="include.js"></script>
<script>
test(() => {
println("Hello");
document.body.offsetWidth // Force a layout
println("friends"); // This will append a text child to the output element, and should update the layout tree.
});
</script>