mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
Expose the paintable tree dump through the internals object, analogous to the existing dumpLayoutTree(). This is useful for testing and debugging painting behavior.
12 lines
286 B
HTML
12 lines
286 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.dumpPaintableTree(el));
|
|
});
|
|
</script>
|