Enable new color functions from CSS Color 4 (#30752)

I will need to do most of the work anyways during the style updates,
so by enabling this it will be easier to detect mistakes.

Also, canvas colors are now parsed as <color>, precisely to support
these new features. This is according to the HTML spec:
https://html.spec.whatwg.org/multipage/infrastructure.html#parsed-as-a-css-color-value
This commit is contained in:
Oriol Brufau 2023-11-20 17:15:43 +01:00 committed by GitHub
parent 868d84d8ee
commit 61af8fb56d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
220 changed files with 75 additions and 4283 deletions

View file

@ -30,7 +30,7 @@ fn allow_color_mix() -> bool {
#[cfg(feature = "gecko")]
return static_prefs::pref!("layout.css.color-mix.enabled");
#[cfg(feature = "servo")]
return false;
return true;
}
#[inline]
@ -38,7 +38,7 @@ fn allow_more_color_4() -> bool {
#[cfg(feature = "gecko")]
return static_prefs::pref!("layout.css.more_color_4.enabled");
#[cfg(feature = "servo")]
return false;
return true;
}
impl ColorMix {