layout: Basic implementation of size keywords on flex-basis (#35413)

layout: Basic implementation of size keywords on `flex-basis`

This splits the logic to resolve the used value of `flex-basis` into its
own method, which preserves size keywords.

And then it changes `flex_base_size()` to resolve the provided keywords
properly. However, it doesn't handle size keywords in the cross axis.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2025-02-13 16:24:06 +01:00 committed by GitHub
parent 3d9e7a95e0
commit 2b930814d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 153 additions and 168 deletions

View file

@ -1,14 +1,8 @@
[flex-basis-intrinsics-001.html]
[.flex-item 1]
[.flex-item 7]
expected: FAIL
[.flex-item 2]
expected: FAIL
[.flex-item 3]
expected: FAIL
[.flex-item 8]
[.flex-item 9]
expected: FAIL
[.flex-item 10]

View file

@ -1,12 +0,0 @@
[flex-basis-1.html]
[.item 1]
expected: FAIL
[.item 2]
expected: FAIL
[.item 3]
expected: FAIL
[.item 4]
expected: FAIL

View file

@ -1,13 +1,4 @@
[calc-size-flex-basis-on-column.html]
[resolved value for height resulting from flex-basis: min-content]
expected: FAIL
[resolved value for height resulting from flex-basis: fit-content]
expected: FAIL
[resolved value for height resulting from flex-basis: max-content]
expected: FAIL
[resolved value for height resulting from flex-basis: calc-size(any, 357px)]
expected: FAIL

View file

@ -1,13 +1,4 @@
[calc-size-flex-basis-on-row.html]
[resolved value for width resulting from flex-basis: min-content]
expected: FAIL
[resolved value for width resulting from flex-basis: fit-content]
expected: FAIL
[resolved value for width resulting from flex-basis: max-content]
expected: FAIL
[resolved value for width resulting from flex-basis: calc-size(any, 357px)]
expected: FAIL