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.
11 lines
283 B
HTML
11 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>
|