Files
ladybird/Tests/LibWeb/Layout/expected/grid/fit-content-row-with-overflow-hidden.txt
Aliaksandr Kalenik ced5dc51c4 LibWeb: Fix fit-content() row clamping with indefinite available height
`grid-template-rows: fit-content(100px)` had no effect when the grid
container lacked an explicit height, because the fit-content growth
limit clamping was gated behind `available_size.is_definite()`.

Fix by normalizing fit-content tracks with unresolvable percentage
arguments to max-content during track initialization, then applying
the fit-content clamp unconditionally.

Fixes https://github.com/LadybirdBrowser/ladybird/issues/7730
2026-02-02 20:33:05 +01:00

20 lines
1.3 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 116 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: not-inline
Box <div.grid> at [8,8] [0+0+0 784 0+0+0] [0+0+0 100 0+0+0] [GFC] children: not-inline
BlockContainer <div.wrapper> at [8,8] [0+0+0 784 0+0+0] [0+0+0 100 0+0+0] [BFC] children: not-inline
BlockContainer <div.inner> at [8,8] [0+0+0 200 0+0+584] [0+0+0 200 0+0+0] children: not-inline
BlockContainer <(anonymous)> at [8,108] [0+0+0 784 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 800x116]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x100]
PaintableBox (Box<DIV>.grid) [8,8 784x100]
PaintableWithLines (BlockContainer<DIV>.wrapper) [8,8 784x100] overflow: [8,8 784x200]
PaintableWithLines (BlockContainer<DIV>.inner) [8,8 200x200]
PaintableWithLines (BlockContainer(anonymous)) [8,108 784x0]
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
SC for BlockContainer<HTML> [0,0 800x116] [children: 0] (z-index: auto)