Aliaksandr Kalenik
cd6672eee0
LibWeb: Fix min-content collapsing to 0 with min-width: 0 descendant
...
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.
2026-04-24 19:08:28 +02:00
..
2026-02-23 07:27:31 +01:00
2026-02-23 07:27:31 +01:00
2026-01-18 10:10:04 +01:00
2026-01-18 10:10:04 +01:00
2026-04-24 19:08:28 +02:00
2026-03-31 10:49:15 +02:00
2026-02-02 14:36:49 +00:00
2026-02-02 14:36:49 +00:00
2025-08-29 18:18:55 +01:00
2026-02-02 14:36:49 +00:00
2026-02-02 14:36:49 +00:00
2026-03-17 04:01:29 -05:00
2026-03-17 04:01:29 -05:00
2026-02-26 09:23:23 +01:00
2026-03-04 20:39:01 +01:00
2026-03-04 20:39:01 +01:00
2026-04-09 08:33:40 -04:00
2026-04-03 14:29:44 +02:00
2026-04-09 08:33:40 -04:00
2026-04-09 08:33:40 -04:00
2026-04-23 09:23:02 +01:00
2026-04-23 09:23:02 +01:00
2026-02-02 14:36:49 +00:00
2026-02-02 14:36:49 +00:00
2025-11-28 18:32:48 +01:00
2025-11-05 09:11:49 +01:00
2026-04-17 08:03:26 +02:00
2026-03-26 00:19:50 +00:00
2026-03-25 13:18:15 +00:00
2026-02-14 16:23:18 -05:00
2026-01-12 11:00:14 +00:00
2025-09-22 15:00:50 +02:00
2026-04-17 08:03:26 +02:00
2026-04-01 19:41:46 +01:00
2026-02-08 18:51:13 +01:00
2026-03-31 13:48:50 +01:00
2025-06-13 15:08:26 +02:00
2025-09-12 15:34:09 -04:00
2026-04-17 08:03:26 +02:00
2026-04-15 21:49:40 +02:00
2026-02-06 10:47:50 +00:00
2025-05-14 02:01:59 -06:00
2026-04-15 11:07:38 +01:00
2026-02-27 16:25:53 +00:00
2026-02-02 14:36:49 +00:00
2026-02-02 14:36:49 +00:00
2026-04-15 11:07:38 +01:00
2026-04-15 11:07:38 +01:00
2026-03-17 04:01:29 -05:00
2026-03-17 04:01:29 -05:00
2025-07-28 22:46:27 +02:00
2026-02-02 14:36:49 +00:00
2026-02-23 07:27:31 +01:00
2026-02-23 07:27:31 +01:00
2026-01-20 12:00:11 +01:00
2026-01-20 12:00:11 +01:00
2025-09-25 21:42:52 +02:00
2025-07-09 14:36:08 +02:00
2026-03-31 10:49:15 +02:00
2026-02-05 09:00:56 +01:00
2026-01-20 12:00:11 +01:00
2026-01-20 12:00:11 +01:00
2026-01-20 12:00:11 +01:00
2026-01-20 12:00:11 +01:00
2026-02-27 17:14:50 +01:00
2026-02-27 17:14:50 +01:00
2026-02-02 14:36:49 +00:00
2026-02-02 14:36:49 +00:00
2026-04-22 15:35:07 +01:00
2026-02-27 19:11:41 +01:00
2026-02-26 21:09:08 +01:00
2025-12-24 14:10:27 +01:00
2026-02-02 14:36:49 +00:00
2026-02-02 14:36:49 +00:00
2026-02-02 14:36:49 +00:00
2026-02-02 14:36:49 +00:00
2026-04-22 20:27:41 +02:00
2026-04-22 20:27:41 +02:00
2026-03-10 15:17:51 +01:00
2026-03-04 20:39:01 +01:00
2026-04-21 19:11:24 -05:00
2026-02-26 09:25:25 +01:00
2026-02-08 18:51:13 +01:00
2026-02-08 18:51:13 +01:00