mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
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.
12 lines
283 B
HTML
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>
|