servo/components/layout_2020/flexbox
Oriol Brufau b28260aa13
Fix inline content sizes of intrinsic element with indefinite block size (#34152)
To compute the min-content and max-content inline sizes of a replaced
element, we were only using the aspect ratio to transfer definite block
sizes resulting from clamping the preferred block size between the min
and max block sizes.

However, if the preferred block size is indefinite, then we weren't
transfering the min and max through the aspect ratio.

This patch adds a `SizeConstraint` enum that can represent these cases,
and a `ConstraintSpace` struct analogous to `IndefiniteContainingBlock`
but with no inline size, and a `SizeConstraint` block size.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2024-11-11 11:38:19 +00:00
..
construct.rs layout: Avoid layout sometimes when stretching (#33967) 2024-10-24 17:44:30 +00:00
geom.rs layout: Add initial support for bidirectional text (BiDi) (#33148) 2024-08-21 14:28:54 +00:00
layout.rs Fix inline content sizes of intrinsic element with indefinite block size (#34152) 2024-11-11 11:38:19 +00:00
mod.rs layout: Avoid layout sometimes when stretching (#33967) 2024-10-24 17:44:30 +00:00