From 3d02b4ef90264d082c04422017d45530c9cf3998 Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Sat, 23 Sep 2023 15:57:21 +0200 Subject: [PATCH] Further changes required by Servo --- components/style/values/specified/color.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/style/values/specified/color.rs b/components/style/values/specified/color.rs index e29f3558e6a..723f651ab6f 100644 --- a/components/style/values/specified/color.rs +++ b/components/style/values/specified/color.rs @@ -518,7 +518,10 @@ impl Color { /// Returns whether this color is allowed in forced-colors mode. pub fn honored_in_forced_colors_mode(&self, allow_transparent: bool) -> bool { match *self { - Color::InheritFromBodyQuirk | Color::CurrentColor => false, + #[cfg(feature = "gecko")] + Color::InheritFromBodyQuirk => false, + Color::CurrentColor => false, + #[cfg(feature = "gecko")] Color::System(..) => true, Color::Numeric { ref parsed, .. } => allow_transparent && parsed.alpha == 0, Color::ColorMix(ref mix) => {