diff --git a/components/style/values/specified/color.rs b/components/style/values/specified/color.rs index c70d69e01b8..dc311680b36 100644 --- a/components/style/values/specified/color.rs +++ b/components/style/values/specified/color.rs @@ -562,10 +562,17 @@ fn parse_hash_color(value: &[u8]) -> Result { impl Color { /// Returns whether this color is a system color. + #[cfg(feature = "gecko")] pub fn is_system(&self) -> bool { matches!(self, Color::System(..)) } + /// Returns whether this color is a system color. + #[cfg(feature = "servo")] + pub fn is_system(&self) -> bool { + false + } + /// Returns currentcolor value. #[inline] pub fn currentcolor() -> Color {