Files
ladybird/Tests/LibWeb/Layout/expected/grid/item-with-min-content-width.txt
Aliaksandr Kalenik 23151de217 LibWeb/Layout: Fix min{max}-content size calculation for grid items
Instead of directly invoking `to_px()`,
`calculate_min_content_contribution()` needs to use
`calculate_inner_width()` and `calculate_inner_height()`, which are
aware of how to correctly handle `min-content` and `max-content` values.

Fixes https://github.com/LadybirdBrowser/ladybird/issues/3469
2025-03-15 13:51:16 +01:00

16 lines
875 B
Plaintext

Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x33 [BFC] children: not-inline
Box <body> at (8,8) content-size 784x17 [GFC] children: not-inline
Box <div.main> at (8,8) content-size 100x17 flex-container(row) [FFC] children: not-inline
BlockContainer <div.player> at (8,8) content-size 100x17 flex-item [BFC] children: inline
frag 0 from TextNode start: 0, length: 3, rect: [8,8 26.953125x17] baseline: 13.296875
"whf"
TextNode <#text>
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x33]
PaintableBox (Box<BODY>) [8,8 784x17]
PaintableBox (Box<DIV>.main) [8,8 100x17]
PaintableWithLines (BlockContainer<DIV>.player) [8,8 100x17]
TextPaintable (TextNode<#text>)