Files
ladybird/Tests/LibWeb/Layout/expected/grid/borders.txt
Aliaksandr Kalenik c9108a2ad5 LibWeb: Only set has_scrollable_overflow for scroll containers
Previously, has_scrollable_overflow was a purely geometric check, true
whenever content extended beyond the padding box regardless of the
overflow property. This caused unnecessary scroll frame allocation for
boxes with `overflow:visible`.

Per CSS Overflow 3, scrollable overflow is only defined for scroll
containers (overflow: auto/hidden/scroll). Gate the flag on
`is_scroll_container()` so that only actual scroll containers get scroll
frames assigned.
2026-01-29 14:59:32 +01:00

202 lines
13 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 [0,0] [0+0+0 800 0+0+0] [0+0+0 448 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 432 0+0+8] children: not-inline
Box <div.grid-container> at [8,8] [0+0+0 784 0+0+0] [0+0+0 76 0+0+0] [GFC] children: not-inline
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div.grid-item> at [18,18] [0+10+0 372.140625 0+10+0] [0+10+0 18 0+10+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [18,18 6.34375x18] baseline: 13.796875
"1"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div.grid-item> at [410.140625,18] [0+10+0 371.859375 0+10+0] [0+10+0 18 0+10+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [410.140625,18 8.8125x18] baseline: 13.796875
"2"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div.grid-item> at [18,56] [0+10+0 372.140625 0+10+0] [0+10+0 18 0+10+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [18,56 9.09375x18] baseline: 13.796875
"3"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div.grid-item> at [410.140625,56] [0+10+0 371.859375 0+10+0] [0+10+0 18 0+10+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [410.140625,56 7.75x18] baseline: 13.796875
"4"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <(anonymous)> at [8,84] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
Box <div.grid-container> at [8,84] [0+0+0 784 0+0+0] [0+0+0 108 0+0+0] [GFC] children: not-inline
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div.grid-item> at [18,94] [0+10+0 372.140625 0+10+0] [0+10+0 50 0+10+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [18,94 6.34375x18] baseline: 13.796875
"1"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div.grid-item> at [410.140625,94] [0+10+0 371.859375 0+10+0] [0+10+0 50 0+10+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [410.140625,94 8.8125x18] baseline: 13.796875
"2"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div.grid-item> at [18,164] [0+10+0 372.140625 0+10+0] [0+10+0 18 0+10+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [18,164 9.09375x18] baseline: 13.796875
"3"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div.grid-item> at [410.140625,164] [0+10+0 371.859375 0+10+0] [0+10+0 18 0+10+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [410.140625,164 7.75x18] baseline: 13.796875
"4"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <(anonymous)> at [8,192] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
Box <div.grid-container> at [8,192] [0+0+0 784 0+0+0] [0+0+0 86 0+0+0] [GFC] children: not-inline
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div.grid-item> at [18,202] [0+10+0 347.140625 0+10+0] [0+10+0 18 0+10+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [18,202 6.34375x18] baseline: 13.796875
"1"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div.grid-item> at [435.140625,202] [0+10+0 346.859375 0+10+0] [0+10+0 18 0+10+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [435.140625,202 8.8125x18] baseline: 13.796875
"2"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div.grid-item> at [18,250] [0+10+0 347.140625 0+10+0] [0+10+0 18 0+10+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [18,250 9.09375x18] baseline: 13.796875
"3"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div.grid-item> at [435.140625,250] [0+10+0 346.859375 0+10+0] [0+10+0 18 0+10+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [435.140625,250 7.75x18] baseline: 13.796875
"4"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <(anonymous)> at [8,278] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
Box <div.grid-container> at [8,278] [0+0+0 784 0+0+0] [0+0+0 92 0+0+0] [GFC] children: not-inline
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div.grid-item> at [445.4375,288] [0+10+0 336.5625 0+10+0] [0+10+0 18 0+10+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [445.4375,288 6.34375x18] baseline: 13.796875
"1"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div.grid-item> at [18,342] [0+10+0 339.03125 0+10+0] [0+10+0 18 0+10+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [18,342 8.8125x18] baseline: 13.796875
"2"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <(anonymous)> at [8,370] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
Box <div.grid-container> at [8,370] [0+0+0 784 0+0+0] [0+0+0 50 0+0+0] [GFC] children: not-inline
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div.grid-item> at [18,380] [0+10+0 280 0+10+0] [0+10+0 5 0+10+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [18,380 6.34375x18] baseline: 13.796875
"1"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div.grid-item> at [318,380] [0+10+0 280 0+10+0] [0+10+0 5 0+10+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [318,380 8.8125x18] baseline: 13.796875
"2"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div.grid-item> at [18,405] [0+10+0 280 0+10+0] [0+10+0 5 0+10+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [18,405 8.8125x18] baseline: 13.796875
"2"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div.grid-item> at [318,405] [0+10+0 280 0+10+0] [0+10+0 5 0+10+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [318,405 8.8125x18] baseline: 13.796875
"2"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <(anonymous)> at [8,420] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
Box <div.grid-container> at [8,420] [0+0+0 784 0+0+0] [0+0+0 20 0+0+0] [GFC] children: not-inline
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
BlockContainer <div.grid-item> at [18,430] [0+10+0 764 0+10+0] [0+10+0 0 0+10+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [18,430 6.34375x18] baseline: 13.796875
"1"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text> (not painted)
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x448]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x432]
PaintableBox (Box<DIV>.grid-container) [8,8 784x76]
PaintableWithLines (BlockContainer<DIV>.grid-item) [8,8 392.140625x38]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.grid-item) [400.140625,8 391.859375x38]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.grid-item) [8,46 392.140625x38]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.grid-item) [400.140625,46 391.859375x38]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,84 784x0]
PaintableBox (Box<DIV>.grid-container) [8,84 784x108]
PaintableWithLines (BlockContainer<DIV>.grid-item) [8,84 392.140625x70]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.grid-item) [400.140625,84 391.859375x70]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.grid-item) [8,154 392.140625x38]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.grid-item) [400.140625,154 391.859375x38]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,192 784x0]
PaintableBox (Box<DIV>.grid-container) [8,192 784x86]
PaintableWithLines (BlockContainer<DIV>.grid-item) [8,192 367.140625x38]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.grid-item) [425.140625,192 366.859375x38]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.grid-item) [8,240 367.140625x38]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.grid-item) [425.140625,240 366.859375x38]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,278 784x0]
PaintableBox (Box<DIV>.grid-container) [8,278 784x92]
PaintableWithLines (BlockContainer<DIV>.grid-item) [435.4375,278 356.5625x38]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.grid-item) [8,332 359.03125x38]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,370 784x0]
PaintableBox (Box<DIV>.grid-container) [8,370 784x50]
PaintableWithLines (BlockContainer<DIV>.grid-item) [8,370 300x25]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.grid-item) [308,370 300x25]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.grid-item) [8,395 300x25]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.grid-item) [308,395 300x25]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,420 784x0]
PaintableBox (Box<DIV>.grid-container) [8,420 784x20]
PaintableWithLines (BlockContainer<DIV>.grid-item) [8,420 784x20]
TextPaintable (TextNode<#text>)
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
SC for BlockContainer<HTML> [0,0 800x448] [children: 0] (z-index: auto)