mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 00:22:36 +02:00
During intrinsic sizing, compute_width() ran on block descendants with an intrinsic-sizing available space. For a non-FC-establishing block with auto width, used_width stayed auto, and the min-width clamp then compared AvailableSize::min-content against min-width via operator<, which always returns true when the left side is min-content. The clamp fired with min-width: 0 and set content_width to 0 permanently. Skip the min-width clamp when used_width is still auto, mirroring the max-width clamp a few lines above which already no-ops via to_px_or_zero. The real width is then set by the IntrinsicSizing branch in layout_block_level_children.
93 KiB
93 KiB