servo/components/layout_2020/table
Oriol Brufau 93abdf7cb5
layout: Add an indefinite containing block for intrinsic sizing (#33204)
When computing the min-content or max-content size of an element we
need to ignore `inline-size`, `min-inline-size` and `max-inline-size`.

However, we should take the block-axis sizing properties into account.
That's because the contents could have percentages depending on them,
which can then affect their inline size via an aspect ratio.

Therefore, this patch adds `IndefiniteContainingBlock`, which is similar
to `ContainingBlock`, but it allows an indefinite inline-size. This
struct is then passed arround during intrinsic sizing.

More refinement will be needed in follow-up patches in order to fully
address the problem.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-08-29 14:10:46 +00:00
..
construct.rs fonts: Add support for generic font families and font size configuration (#32673) 2024-07-08 17:17:48 +00:00
layout.rs layout: Add an indefinite containing block for intrinsic sizing (#33204) 2024-08-29 14:10:46 +00:00
mod.rs fonts: Add support for generic font families and font size configuration (#32673) 2024-07-08 17:17:48 +00:00