layout: Partial support for sizing keywords on flex items (#35469)

* Add tests for sizing keywords on flex items

Signed-off-by: Oriol Brufau <obrufau@igalia.com>

* layout: Partial support for sizing keywords on flex items

When a flex item has `flex-basis: auto`, the used `flex-basis` is the
value of the main size property. In that case, if the main size property
was set to keyword, we were always assuming it was `auto`. Now we handle
non-`auto` keywords correctly.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>

---------

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2025-02-17 18:51:10 +01:00 committed by GitHub
parent 5fa14c97bd
commit c2224d5afc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 639 additions and 52 deletions

View file

@ -2,9 +2,6 @@
[[data-expected-height\] 8]
expected: FAIL
[[data-expected-height\] 20]
expected: FAIL
[[data-expected-height\] 21]
expected: FAIL
@ -14,9 +11,6 @@
[[data-expected-height\] 31]
expected: FAIL
[[data-expected-height\] 43]
expected: FAIL
[[data-expected-height\] 44]
expected: FAIL

View file

@ -2,9 +2,6 @@
[[data-expected-width\] 8]
expected: FAIL
[[data-expected-width\] 19]
expected: FAIL
[[data-expected-width\] 21]
expected: FAIL
@ -14,9 +11,6 @@
[[data-expected-width\] 31]
expected: FAIL
[[data-expected-width\] 42]
expected: FAIL
[[data-expected-width\] 44]
expected: FAIL