mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Add internals.dumpLayoutTree(node) API
This new testing API dumps the layout subtree rooted at a given DOM node. It will be useful for testing partial layout tree rebuilds, where we need to verify the layout tree structure for specific subtrees rather than the entire document.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
aa24da8a93
commit
5be98aaa07
Notes:
github-actions[bot]
2026-02-09 20:06:59 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/5be98aaa072 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7853 Reviewed-by: https://github.com/gmta ✅
11
Tests/LibWeb/Text/input/Internals/dump-layout-tree.html
Normal file
11
Tests/LibWeb/Text/input/Internals/dump-layout-tree.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<div id="target" style="width: 100px; height: 50px;">
|
||||
<span>Hello</span>
|
||||
</div>
|
||||
<script>
|
||||
test(() => {
|
||||
const el = document.getElementById("target");
|
||||
println(internals.dumpLayoutTree(el));
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user