diff --git a/style/values/specified/image.rs b/style/values/specified/image.rs index b4f50e4b8..8f5bd485f 100644 --- a/style/values/specified/image.rs +++ b/style/values/specified/image.rs @@ -992,7 +992,7 @@ impl Gradient { AngleOrPercentage::parse_with_unitless, )?; - if cfg!(feature = "servo") || items.len() < 2 { + if items.len() < 2 { return Err(input.new_custom_error(StyleParseErrorKind::UnspecifiedError)); }