Files
ladybird/Tests/LibWeb/Layout/expected/misc/create-iframes-using-innerhtml.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

85 lines
7.2 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 16 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 0 0+0+8] children: not-inline
BlockContainer <div#container> at [8,8] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: not-inline
BlockContainer <div> at [8,8] positioned [0+0+0 1 0+0+0] [0+0+0 1 0+0+0] [BFC] children: inline
frag 0 from NavigableContainerViewport start: 0, length: 0, rect: [18,18 10x10] baseline: 30
frag 1 from NavigableContainerViewport start: 0, length: 0, rect: [18,48 10x10] baseline: 30
frag 2 from NavigableContainerViewport start: 0, length: 0, rect: [18,78 10x10] baseline: 30
frag 3 from NavigableContainerViewport start: 0, length: 0, rect: [18,108 10x10] baseline: 30
frag 4 from NavigableContainerViewport start: 0, length: 0, rect: [18,138 10x10] baseline: 30
frag 5 from NavigableContainerViewport start: 0, length: 0, rect: [18,168 10x10] baseline: 30
frag 6 from NavigableContainerViewport start: 0, length: 0, rect: [18,198 10x10] baseline: 30
frag 7 from NavigableContainerViewport start: 0, length: 0, rect: [18,228 10x10] baseline: 30
frag 8 from NavigableContainerViewport start: 0, length: 0, rect: [18,258 10x10] baseline: 30
frag 9 from NavigableContainerViewport start: 0, length: 0, rect: [18,288 10x10] baseline: 30
NavigableContainerViewport <iframe> at [18,18] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
NavigableContainerViewport <iframe> at [18,48] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
NavigableContainerViewport <iframe> at [18,78] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
NavigableContainerViewport <iframe> at [18,108] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
NavigableContainerViewport <iframe> at [18,138] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
NavigableContainerViewport <iframe> at [18,168] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
NavigableContainerViewport <iframe> at [18,198] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
NavigableContainerViewport <iframe> at [18,228] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
NavigableContainerViewport <iframe> at [18,258] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
NavigableContainerViewport <iframe> at [18,288] [5+5+0 10 0+5+5] [5+5+0 10 0+5+5] children: not-inline (url: about:blank)
Viewport <#document> at [0,0] [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 10 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 0 0+0+8] [8+0+0 0 0+0+8] children: not-inline
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x16]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x0]
PaintableWithLines (BlockContainer<DIV>#container) [8,8 784x0]
PaintableWithLines (BlockContainer<DIV>) [8,8 1x1]
NavigableContainerViewportPaintable (NavigableContainerViewport<IFRAME>) [13,13 20x20]
NavigableContainerViewportPaintable (NavigableContainerViewport<IFRAME>) [13,43 20x20]
NavigableContainerViewportPaintable (NavigableContainerViewport<IFRAME>) [13,73 20x20]
NavigableContainerViewportPaintable (NavigableContainerViewport<IFRAME>) [13,103 20x20]
NavigableContainerViewportPaintable (NavigableContainerViewport<IFRAME>) [13,133 20x20]
NavigableContainerViewportPaintable (NavigableContainerViewport<IFRAME>) [13,163 20x20]
NavigableContainerViewportPaintable (NavigableContainerViewport<IFRAME>) [13,193 20x20]
NavigableContainerViewportPaintable (NavigableContainerViewport<IFRAME>) [13,223 20x20]
NavigableContainerViewportPaintable (NavigableContainerViewport<IFRAME>) [13,253 20x20]
NavigableContainerViewportPaintable (NavigableContainerViewport<IFRAME>) [13,283 20x20]
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
SC for BlockContainer<HTML> [0,0 800x16] [children: 0] (z-index: auto)