mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
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.
31 lines
2.0 KiB
Plaintext
31 lines
2.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.js> at [0,0] [0+0+0 800 0+0+0] [0+0+0 200 0+0+0] [BFC] children: not-inline
|
|
BlockContainer <body> at [0,0] [0+0+0 800 0+0+0] [0+0+0 50 0+0+0] children: not-inline
|
|
BlockContainer <div#page> at [50,50] [0+0+50 750 0+0+0] [0+0+50 0 0+0+0] children: not-inline
|
|
BlockContainer <div#content_box> at [50,50] floating [0+0+0 400 0+0+0] [0+0+0 150 0+0+0] [BFC] children: inline
|
|
BlockContainer <article.first> at [50,50] floating [0+0+0 300 0+0+0] [0+0+0 100 0+0+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 5, rect: [50,50 36.03125x18] baseline: 13.796875
|
|
"first"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <article.second> at [50,150] floating [0+0+0 200 0+0+0] [0+0+0 50 0+0+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 6, rect: [50,150 54.78125x18] baseline: 13.796875
|
|
"second"
|
|
TextNode <#text> (not painted)
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> at [0,50] [0+0+0 800 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>.js) [0,0 800x200]
|
|
PaintableWithLines (BlockContainer<BODY>) [0,0 800x50]
|
|
PaintableWithLines (BlockContainer<DIV>#page) [0,0 800x50]
|
|
PaintableWithLines (BlockContainer<DIV>#content_box) [50,50 400x150]
|
|
PaintableWithLines (BlockContainer<ARTICLE>.first) [50,50 300x100]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<ARTICLE>.second) [50,150 200x50]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [0,50 800x0]
|
|
|
|
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
|
SC for BlockContainer<HTML>.js [0,0 800x200] [children: 0] (z-index: auto)
|