Enable relative color syntax (#34897)

Upgrades Stylo to https://github.com/servo/stylo/pull/107

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2025-01-08 10:07:44 -08:00 committed by GitHub
parent a94c0c04a6
commit 51a1aeb535
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 12 additions and 6377 deletions

24
Cargo.lock generated
View file

@ -1593,7 +1593,7 @@ dependencies = [
[[package]]
name = "dom"
version = "0.0.1"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#7e529e8cf99502c99e431515de095d18548219d5"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#fbd6a1448bb699000ae18067ea1b455e4cce7c97"
dependencies = [
"bitflags 2.6.0",
"malloc_size_of",
@ -4325,7 +4325,7 @@ dependencies = [
[[package]]
name = "malloc_size_of"
version = "0.0.1"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#7e529e8cf99502c99e431515de095d18548219d5"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#fbd6a1448bb699000ae18067ea1b455e4cce7c97"
dependencies = [
"app_units",
"cssparser",
@ -6281,7 +6281,7 @@ dependencies = [
[[package]]
name = "selectors"
version = "0.26.0"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#7e529e8cf99502c99e431515de095d18548219d5"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#fbd6a1448bb699000ae18067ea1b455e4cce7c97"
dependencies = [
"bitflags 2.6.0",
"cssparser",
@ -6569,7 +6569,7 @@ dependencies = [
[[package]]
name = "servo_arc"
version = "0.4.0"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#7e529e8cf99502c99e431515de095d18548219d5"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#fbd6a1448bb699000ae18067ea1b455e4cce7c97"
dependencies = [
"serde",
"stable_deref_trait",
@ -6578,7 +6578,7 @@ dependencies = [
[[package]]
name = "servo_atoms"
version = "0.0.1"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#7e529e8cf99502c99e431515de095d18548219d5"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#fbd6a1448bb699000ae18067ea1b455e4cce7c97"
dependencies = [
"string_cache",
"string_cache_codegen",
@ -6950,7 +6950,7 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
[[package]]
name = "static_prefs"
version = "0.1.0"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#7e529e8cf99502c99e431515de095d18548219d5"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#fbd6a1448bb699000ae18067ea1b455e4cce7c97"
[[package]]
name = "strck"
@ -7009,7 +7009,7 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
[[package]]
name = "style"
version = "0.0.1"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#7e529e8cf99502c99e431515de095d18548219d5"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#fbd6a1448bb699000ae18067ea1b455e4cce7c97"
dependencies = [
"app_units",
"arrayvec",
@ -7067,7 +7067,7 @@ dependencies = [
[[package]]
name = "style_config"
version = "0.0.1"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#7e529e8cf99502c99e431515de095d18548219d5"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#fbd6a1448bb699000ae18067ea1b455e4cce7c97"
dependencies = [
"lazy_static",
]
@ -7075,7 +7075,7 @@ dependencies = [
[[package]]
name = "style_derive"
version = "0.0.1"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#7e529e8cf99502c99e431515de095d18548219d5"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#fbd6a1448bb699000ae18067ea1b455e4cce7c97"
dependencies = [
"darling",
"proc-macro2",
@ -7105,7 +7105,7 @@ dependencies = [
[[package]]
name = "style_traits"
version = "0.0.1"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#7e529e8cf99502c99e431515de095d18548219d5"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#fbd6a1448bb699000ae18067ea1b455e4cce7c97"
dependencies = [
"app_units",
"bitflags 2.6.0",
@ -7500,7 +7500,7 @@ dependencies = [
[[package]]
name = "to_shmem"
version = "0.1.0"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#7e529e8cf99502c99e431515de095d18548219d5"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#fbd6a1448bb699000ae18067ea1b455e4cce7c97"
dependencies = [
"cssparser",
"servo_arc",
@ -7513,7 +7513,7 @@ dependencies = [
[[package]]
name = "to_shmem_derive"
version = "0.1.0"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#7e529e8cf99502c99e431515de095d18548219d5"
source = "git+https://github.com/servo/stylo?branch=2024-12-04#fbd6a1448bb699000ae18067ea1b455e4cce7c97"
dependencies = [
"darling",
"proc-macro2",

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -25,57 +25,3 @@
[Property color value 'rgb(from oklch(0 0.399 336.3) r g b)']
expected: FAIL
[Property color value 'hsl(from color(display-p3 0 1 0) h s l / alpha)']
expected: FAIL
[Property color value 'hsl(from lab(100 104.3 -50.9) h s l)']
expected: FAIL
[Property color value 'hsl(from lab(0 104.3 -50.9) h s l)']
expected: FAIL
[Property color value 'hsl(from lch(100 116 334) h s l)']
expected: FAIL
[Property color value 'hsl(from lch(0 116 334) h s l)']
expected: FAIL
[Property color value 'hsl(from oklab(1 0.365 -0.16) h s l)']
expected: FAIL
[Property color value 'hsl(from oklab(0 0.365 -0.16) h s l)']
expected: FAIL
[Property color value 'hsl(from oklch(1 0.399 336.3) h s l)']
expected: FAIL
[Property color value 'hsl(from oklch(0 0.399 336.3) h s l)']
expected: FAIL
[Property color value 'hwb(from color(display-p3 0 1 0) h w b / alpha)']
expected: FAIL
[Property color value 'hwb(from lab(100 104.3 -50.9) h w b)']
expected: FAIL
[Property color value 'hwb(from lab(0 104.3 -50.9) h w b)']
expected: FAIL
[Property color value 'hwb(from lch(100 116 334) h w b)']
expected: FAIL
[Property color value 'hwb(from lch(0 116 334) h w b)']
expected: FAIL
[Property color value 'hwb(from oklab(1 0.365 -0.16) h w b)']
expected: FAIL
[Property color value 'hwb(from oklab(0 0.365 -0.16) h w b)']
expected: FAIL
[Property color value 'hwb(from oklch(1 0.399 336.3) h w b)']
expected: FAIL
[Property color value 'hwb(from oklch(0 0.399 336.3) h w b)']
expected: FAIL

View file

@ -1,2 +0,0 @@
[relative-currentcolor-a98rgb-01.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[relative-currentcolor-displayp3-01.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[relative-currentcolor-hsl-01.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[relative-currentcolor-hsl-02.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[relative-currentcolor-hwb-01.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[relative-currentcolor-lab-01.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[relative-currentcolor-lch-01.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[relative-currentcolor-oklab-01.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[relative-currentcolor-oklch-01.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[relative-currentcolor-prophoto-01.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[relative-currentcolor-rec2020-01.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[relative-currentcolor-rec2020-02.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[relative-currentcolor-rgb-01.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[relative-currentcolor-rgb-02.html]
expected: FAIL

View file

@ -1,3 +0,0 @@
[relative-currentcolor-visited-getcomputedstyle.html]
[Property background-color value 'rgb(from currentcolor r g b)' should not leak :visited for computed style]
expected: FAIL

View file

@ -1,2 +0,0 @@
[relative-currentcolor-xyzd50-01.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[relative-currentcolor-xyzd65-01.html]
expected: FAIL

View file

@ -1,3 +0,0 @@
[2d.fillStyle.relativecolor.currentcolor.html]
[Relative color works as color input with currentcolor]
expected: FAIL

View file

@ -1,3 +0,0 @@
[2d.fillStyle.relativecolor.html]
[Relative color works as color input]
expected: FAIL

View file

@ -1,3 +0,0 @@
[2d.strokeStyle.relativecolor.html]
[Relative color works as color input]
expected: FAIL

View file

@ -1,3 +0,0 @@
[2d.fillStyle.relativecolor.html]
[Relative color works as color input]
expected: FAIL

View file

@ -1,3 +0,0 @@
[2d.fillStyle.relativecolor.worker.html]
[Relative color works as color input]
expected: FAIL

View file

@ -1,3 +0,0 @@
[2d.strokeStyle.relativecolor.html]
[Relative color works as color input]
expected: FAIL

View file

@ -1,3 +0,0 @@
[2d.strokeStyle.relativecolor.worker.html]
[Relative color works as color input]
expected: FAIL