mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
For grid items with auto preferred size, stretch/normal alignment, and no auto margins, the final size is simply the containing block size minus margin box sizes. We can compute this directly without calling `calculate_fit_content_width/height`, which triggers expensive intrinsic sizing layout passes.
66 lines
4.0 KiB
Plaintext
66 lines
4.0 KiB
Plaintext
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
|
|
BlockContainer <html> at [1,1] [0+1+0 798 0+1+0] [0+1+0 220 0+1+0] [BFC] children: not-inline
|
|
BlockContainer <body> at [10,10] [8+1+0 780 0+1+8] [8+1+0 202 0+1+8] children: not-inline
|
|
Box <div.grid> at [11,11] [0+1+0 300 0+1+478] [0+1+0 200 0+1+0] [GFC] children: not-inline
|
|
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <div.item> at [12,12] [0+1+0 98 0+1+0] [0+1+0 98 0+1+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 7, rect: [12,12 58.796875x18] baseline: 13.796875
|
|
"stretch"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <div.item> at [112,12] [0+1+0 98 0+1+0] [0+1+0 18 0+1+80] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 5, rect: [112,12 41.234375x18] baseline: 13.796875
|
|
"start"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <div.item> at [212,52] [0+1+0 98 0+1+0] [40+1+0 18 0+1+40] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 6, rect: [212,52 51.625x18] baseline: 13.796875
|
|
"center"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <div.item> at [12,192] [0+1+0 98 0+1+0] [80+1+0 18 0+1+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 3, rect: [12,192 26.1875x18] baseline: 13.796875
|
|
"end"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <div.item> at [112,112] [0+1+0 54.171875 0+1+43.828125] [0+1+0 98 0+1+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 7, rect: [112,112 54.171875x18] baseline: 13.796875
|
|
"j-start"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <div.item> at [228.71875,112] [16.71875+1+0 64.5625 0+1+16.71875] [0+1+0 98 0+1+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 8, rect: [228.71875,112 64.5625x18] baseline: 13.796875
|
|
"j-center"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> at [10,212] [0+0+0 780 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 800x222]
|
|
PaintableWithLines (BlockContainer<BODY>) [9,9 782x204]
|
|
PaintableBox (Box<DIV>.grid) [10,10 302x202]
|
|
PaintableWithLines (BlockContainer<DIV>.item) [11,11 100x100]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>.item) [111,11 100x20]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>.item) [211,51 100x20]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>.item) [11,191 100x20]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>.item) [111,111 56.171875x100]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>.item) [227.71875,111 66.5625x100]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [10,212 780x0]
|
|
|
|
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
|
SC for BlockContainer<HTML> [1,1 798x220] [children: 0] (z-index: auto)
|