stylo: Add support for -webkit-fill-available sizing keyword (#39492)

This keyword is de-facto required for web compatibility, Firefox is also
enabling it (https://bugzil.la/1988938).

This patch just aliases it to `stretch`.

Stylo PR: https://github.com/servo/stylo/pull/243

Testing: Various tests pass

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2025-09-26 12:45:56 +02:00 committed by GitHub
parent 858208bd25
commit 38a63a7977
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 23 additions and 564 deletions

24
Cargo.lock generated
View file

@ -7538,7 +7538,7 @@ dependencies = [
[[package]]
name = "selectors"
version = "0.31.0"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#c4caa30eebad573590222d4f76b8939b41dc186a"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#bb62b4e71c44fbb00f4657a1431282193e34d306"
dependencies = [
"bitflags 2.9.4",
"cssparser",
@ -7871,7 +7871,7 @@ dependencies = [
[[package]]
name = "servo_arc"
version = "0.4.1"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#c4caa30eebad573590222d4f76b8939b41dc186a"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#bb62b4e71c44fbb00f4657a1431282193e34d306"
dependencies = [
"serde",
"stable_deref_trait",
@ -8345,7 +8345,7 @@ dependencies = [
[[package]]
name = "stylo"
version = "0.7.0"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#c4caa30eebad573590222d4f76b8939b41dc186a"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#bb62b4e71c44fbb00f4657a1431282193e34d306"
dependencies = [
"app_units",
"arrayvec",
@ -8402,7 +8402,7 @@ dependencies = [
[[package]]
name = "stylo_atoms"
version = "0.7.0"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#c4caa30eebad573590222d4f76b8939b41dc186a"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#bb62b4e71c44fbb00f4657a1431282193e34d306"
dependencies = [
"string_cache",
"string_cache_codegen",
@ -8411,12 +8411,12 @@ dependencies = [
[[package]]
name = "stylo_config"
version = "0.7.0"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#c4caa30eebad573590222d4f76b8939b41dc186a"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#bb62b4e71c44fbb00f4657a1431282193e34d306"
[[package]]
name = "stylo_derive"
version = "0.7.0"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#c4caa30eebad573590222d4f76b8939b41dc186a"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#bb62b4e71c44fbb00f4657a1431282193e34d306"
dependencies = [
"darling",
"proc-macro2",
@ -8428,7 +8428,7 @@ dependencies = [
[[package]]
name = "stylo_dom"
version = "0.7.0"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#c4caa30eebad573590222d4f76b8939b41dc186a"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#bb62b4e71c44fbb00f4657a1431282193e34d306"
dependencies = [
"bitflags 2.9.4",
"stylo_malloc_size_of",
@ -8437,7 +8437,7 @@ dependencies = [
[[package]]
name = "stylo_malloc_size_of"
version = "0.7.0"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#c4caa30eebad573590222d4f76b8939b41dc186a"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#bb62b4e71c44fbb00f4657a1431282193e34d306"
dependencies = [
"app_units",
"cssparser",
@ -8454,12 +8454,12 @@ dependencies = [
[[package]]
name = "stylo_static_prefs"
version = "0.7.0"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#c4caa30eebad573590222d4f76b8939b41dc186a"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#bb62b4e71c44fbb00f4657a1431282193e34d306"
[[package]]
name = "stylo_traits"
version = "0.7.0"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#c4caa30eebad573590222d4f76b8939b41dc186a"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#bb62b4e71c44fbb00f4657a1431282193e34d306"
dependencies = [
"app_units",
"bitflags 2.9.4",
@ -8874,7 +8874,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
[[package]]
name = "to_shmem"
version = "0.2.0"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#c4caa30eebad573590222d4f76b8939b41dc186a"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#bb62b4e71c44fbb00f4657a1431282193e34d306"
dependencies = [
"cssparser",
"servo_arc",
@ -8887,7 +8887,7 @@ dependencies = [
[[package]]
name = "to_shmem_derive"
version = "0.1.0"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#c4caa30eebad573590222d4f76b8939b41dc186a"
source = "git+https://github.com/servo/stylo?branch=2025-09-02#bb62b4e71c44fbb00f4657a1431282193e34d306"
dependencies = [
"darling",
"proc-macro2",