layout: Support min/max cross keywords sizes in flexbox (#35860)

Adds support for min-content, max-content, fit-content and stretch on
the min and max cross size properties of a flex item.
With one exception: when resolving the main sizes, transferred cross
minimums and maximums will still ignore keywords.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2025-03-10 15:25:56 +01:00 committed by GitHub
parent 56da4ad959
commit c6527c4118
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 79 additions and 214 deletions

View file

@ -2,24 +2,12 @@
[[data-expected-height\] 8]
expected: FAIL
[[data-expected-height\] 19]
expected: FAIL
[[data-expected-height\] 21]
expected: FAIL
[[data-expected-height\] 22]
expected: FAIL
[[data-expected-height\]:not([skip-second-pass\]) 31]
expected: FAIL
[[data-expected-height\]:not([skip-second-pass\]) 42]
expected: FAIL
[[data-expected-height\]:not([skip-second-pass\]) 44]
expected: FAIL
[[data-expected-height\]:not([skip-second-pass\]) 45]
expected: FAIL

View file

@ -2,24 +2,12 @@
[[data-expected-width\] 8]
expected: FAIL
[[data-expected-width\] 20]
expected: FAIL
[[data-expected-width\] 21]
expected: FAIL
[[data-expected-width\] 22]
expected: FAIL
[[data-expected-width\]:not([skip-second-pass\]) 31]
expected: FAIL
[[data-expected-width\]:not([skip-second-pass\]) 43]
expected: FAIL
[[data-expected-width\]:not([skip-second-pass\]) 44]
expected: FAIL
[[data-expected-width\]:not([skip-second-pass\]) 45]
expected: FAIL

View file

@ -2,29 +2,17 @@
[[data-expected-height\] 8]
expected: FAIL
[[data-expected-height\] 19]
expected: FAIL
[[data-expected-height\] 20]
expected: FAIL
[[data-expected-height\] 21]
expected: FAIL
[[data-expected-height\] 22]
expected: FAIL
[[data-expected-height\] 31]
expected: FAIL
[[data-expected-height\] 42]
expected: FAIL
[[data-expected-height\] 43]
expected: FAIL
[[data-expected-height\] 44]
expected: FAIL
[[data-expected-height\] 45]
expected: FAIL

View file

@ -5,12 +5,6 @@
[[data-expected-width\] 19]
expected: FAIL
[[data-expected-width\] 20]
expected: FAIL
[[data-expected-width\] 21]
expected: FAIL
[[data-expected-width\] 22]
expected: FAIL
@ -20,11 +14,5 @@
[[data-expected-width\] 42]
expected: FAIL
[[data-expected-width\] 43]
expected: FAIL
[[data-expected-width\] 44]
expected: FAIL
[[data-expected-width\] 45]
expected: FAIL