Files
ladybird/Tests/LibWeb/Text/input/Internals/dump-layout-tree.html
Aliaksandr Kalenik 5be98aaa07 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.
2026-02-09 21:05:45 +01:00

12 lines
283 B
HTML

<!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>