layout: Support min/max main keyword sizes in flexbox (#35961)

Adds support for min-content, max-content, fit-content and stretch on
the min and max main size properties of a flex item.

I'm removing `automatic_min_size()` and `flex_base_size()` because they
would need to share so much code among themselves and their one caller
that it's simpler to just inline the code.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2025-03-19 10:03:49 +01:00 committed by GitHub
parent 2362e4c134
commit ba6c3916fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 160 additions and 444 deletions

View file

@ -1,4 +0,0 @@
[canvas-dynamic-change-001.html]
[.flexbox 1]
expected: FAIL

View file

@ -1,3 +0,0 @@
[flex-aspect-ratio-img-column-011.html]
[.flexbox 7]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flex-item-max-height-min-content.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flex-item-max-width-min-content.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flex-minimum-height-flex-items-023.html]
expected: FAIL