servo/components/layout_2020/flow
Oriol Brufau 8c2ac88ad0
layout: Implement the fit-content() sizing function (#36056)
Spec: https://drafts.csswg.org/css-sizing-3/#funcdef-width-fit-content

It's similar to the `fit-content` keyword but, instead of clamping the
stretch size between `min-content` and `max-content`, it clamps the
provided argument.

So now that we support `fit-content`, it's quite straightforward to add.
It's just not completely clear what should happen when the argument has
a cyclic percentage, so this may need some further adjustments depending
on the outcome of https://github.com/w3c/csswg-drafts/issues/11805

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-03-23 14:26:44 +00:00
..
inline Migrate to the 2024 edition (#35755) 2025-03-13 10:28:11 +00:00
construct.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
float.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
mod.rs layout: Implement the fit-content() sizing function (#36056) 2025-03-23 14:26:44 +00:00
root.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00