diff options
Diffstat (limited to 'components/style/custom_properties.rs')
-rw-r--r-- | components/style/custom_properties.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/custom_properties.rs b/components/style/custom_properties.rs index 5bd97241b67..31c3dc207f5 100644 --- a/components/style/custom_properties.rs +++ b/components/style/custom_properties.rs @@ -553,7 +553,7 @@ fn parse_var_function<'i, 't>( let name = parse_name(&name).map_err(|()| { input.new_custom_error(SelectorParseErrorKind::UnexpectedIdent(name.clone())) })?; - if input.r#try(|input| input.expect_comma()).is_ok() { + if input.try(|input| input.expect_comma()).is_ok() { parse_fallback(input)?; } if let Some(refs) = references { @@ -569,7 +569,7 @@ fn parse_env_function<'i, 't>( // TODO(emilio): This should be <custom-ident> per spec, but no other // browser does that, see https://github.com/w3c/csswg-drafts/issues/3262. input.expect_ident()?; - if input.r#try(|input| input.expect_comma()).is_ok() { + if input.try(|input| input.expect_comma()).is_ok() { parse_fallback(input)?; } if let Some(references) = references { |