servo/components/layout_2020/flow/inline
Oriol Brufau 5d43d88b6c
Respect min/max constraints in the block axis of block containers (#33203)
Consider a block container that establishes an inline formatting context
and has a definite `block-size` which is clamped by `min-block-size` or
`max-block-size`.

We were already sizing such container correctly, however, its contents
were resolving their percentages against the unclamped `block-size`
value.

This patch fixes the `ContainingBlock` that we pass to the contents so
that they resolve percentages correctly.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-08-27 09:05:43 +00:00
..
construct.rs layout: Add initial support for bidirectional text (BiDi) (#33148) 2024-08-21 14:28:54 +00:00
inline_box.rs layout: Allow rendering LineItems independent of inline box (#32666) 2024-07-03 15:15:31 +00:00
line.rs layout: Clean up inline layout data structures (#33149) 2024-08-22 12:05:15 +00:00
line_breaker.rs layout: Linebreak the entire InlineFormattingContext at once (#32483) 2024-06-13 20:12:14 +00:00
mod.rs Respect min/max constraints in the block axis of block containers (#33203) 2024-08-27 09:05:43 +00:00
text_run.rs layout: Clean up inline layout data structures (#33149) 2024-08-22 12:05:15 +00:00