Files
ladybird/Tests/LibWeb/Layout/expected/grid/abspos-with-grid-container-as-parent.txt
Jelle Raaijmakers f4b04beccd LibWeb: Show inline positioning in layout tree dump
Inline nodes in our layout tree have a position, so let's show it. By
centralizing the logic for this, block nodes now lose their redundant
'content-size' dump info which is already part of the box model dump.
2025-08-27 11:53:45 +01:00

63 lines
3.9 KiB
Plaintext

Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] positioned [8+0+0 400 0+0+8] [8+0+0 275 0+0+8] [BFC] children: not-inline
BlockContainer <div#fill> at [8,8] [0+0+0 100 0+0+300] [0+0+0 100 0+0+0] children: inline
frag 0 from TextNode start: 0, length: 5, rect: [8,8 36.84375x18] baseline: 13.796875
"hello"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> at [8,108] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
BlockContainer <div#grid> at [8,108] [0+0+0 400 0+0+0] [0+0+0 75 0+0+0] [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div#grid-item-abspos> at [8,8] positioned [0+0+0 60.890625 0+0+0] [0+0+0 25 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 8, rect: [8,8 60.890625x18] baseline: 13.796875
"top left"
TextNode <#text> (not painted)
TextNode <#text> (not painted)
BlockContainer <div#grid-item-abspos> at [336.25,8] positioned [0+0+0 71.75 0+0+0] [0+0+0 25 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 9, rect: [336.25,8 71.75x18] baseline: 13.796875
"top right"
TextNode <#text> (not painted)
TextNode <#text> (not painted)
BlockContainer <div#grid-item-abspos> at [8,258] positioned [0+0+0 90.359375 0+0+0] [0+0+0 25 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 11, rect: [8,258 90.359375x18] baseline: 13.796875
"bottom left"
TextNode <#text> (not painted)
TextNode <#text> (not painted)
BlockContainer <div#grid-item-abspos> at [306.78125,258] positioned [0+0+0 101.21875 0+0+0] [0+0+0 25 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 12, rect: [306.78125,258 101.21875x18] baseline: 13.796875
"bottom right"
TextNode <#text> (not painted)
TextNode <#text> (not painted)
BlockContainer <(anonymous)> at [8,183] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
BlockContainer <div#fill> at [8,183] [0+0+0 100 0+0+300] [0+0+0 100 0+0+0] children: inline
frag 0 from TextNode start: 0, length: 5, rect: [8,183 36.84375x18] baseline: 13.796875
"hello"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> at [8,283] [0+0+0 400 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x0]
PaintableWithLines (BlockContainer<BODY>) [8,8 400x275]
PaintableWithLines (BlockContainer<DIV>#fill) [8,8 100x100]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,108 400x0]
PaintableWithLines (BlockContainer<DIV>#grid) [8,108 400x75]
PaintableWithLines (BlockContainer<DIV>#grid-item-abspos) [8,8 60.890625x25]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>#grid-item-abspos) [336.25,8 71.75x25]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>#grid-item-abspos) [8,258 90.359375x25]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>#grid-item-abspos) [306.78125,258 101.21875x25]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,183 400x0]
PaintableWithLines (BlockContainer<DIV>#fill) [8,183 100x100]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,283 400x0]
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
SC for BlockContainer<HTML> [0,0 800x0] [children: 0] (z-index: auto)