mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
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:
parent
868d84d8ee
commit
61af8fb56d
220 changed files with 75 additions and 4283 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue