servo/components/layout_2020/flow
Oriol Brufau c7502a99f0
layout: Floor the max-content size by the min-content size (#36518)
It's typically a given that the min-content size can't exceed the
max-content size. However, it was possible to break that assumption when
an inline formatting context had contents with a negative outer size
(due to margins). This could lead to assert failures.

This patch avoids the problem by flooring the max-content size to not be
smaller than the min-content size. Note there is no interoperability:
https://github.com/w3c/csswg-drafts/issues/12076

Testing: adding new reftest and crashtest
Fixes: #36481

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-04-14 18:00:32 +00:00
..
inline layout: Floor the max-content size by the min-content size (#36518) 2025-04-14 18:00:32 +00:00
construct.rs layout: Eliminate extra stored style on outside markers (#36471) 2025-04-11 16:37:11 +00:00
float.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
mod.rs layout: Box block_margins_collapsed_with_children member of BoxFragment (#36474) 2025-04-12 08:52:30 +00:00
root.rs layout: Store table parts in DOM layout data (#36447) 2025-04-12 14:13:23 +00:00