mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Invalidate the layout tree on DOM node insertion
This commit is contained in:
parent
f081a89cd9
commit
3cea86632d
Notes:
sideshowbarker
2024-07-16 19:19:26 +09:00
Author: https://github.com/awesomekling
Commit: 3cea86632d
Pull-request: https://github.com/SerenityOS/serenity/pull/19275
Reviewed-by: https://github.com/gmta ✅
3 changed files with 12 additions and 0 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue