diff --git a/components/style/values/specified/image.rs b/components/style/values/specified/image.rs index 85c178e064d..dae7fe286d0 100644 --- a/components/style/values/specified/image.rs +++ b/components/style/values/specified/image.rs @@ -365,7 +365,14 @@ impl ImageSet { cors_mode: CorsMode, only_url: bool, ) -> Result> { - input.expect_function_matching("image-set")?; + let function = input.expect_function()?; + match_ignore_ascii_case! { &function, + "-webkit-image-set" | "image-set" => {}, + _ => { + let func = function.clone(); + return Err(input.new_custom_error(StyleParseErrorKind::UnexpectedFunction(func))); + } + } let items = input.parse_nested_block(|input| { input.parse_comma_separated(|input| ImageSetItem::parse(context, input, cors_mode, only_url)) })?;