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

@ -592759,6 +592759,20 @@
{}
]
],
"keyword-sizes-on-flex-item-001.html": [
"5989de812e6a17bb4fa2f9ea5df634a3bfbaaccc",
[
null,
{}
]
],
"keyword-sizes-on-flex-item-002.html": [
"4a8cf76b253d2302da59c4020d370f870fa4a0c7",
[
null,
{}
]
],
"keyword-sizes-on-floated-element.html": [
"e3da8bee7eb7b613e457d00eb88a677c35698d08",
[