diff --git a/components/style/stylesheets.rs b/components/style/stylesheets.rs index 3cab9329a7f..8d2c59744b5 100644 --- a/components/style/stylesheets.rs +++ b/components/style/stylesheets.rs @@ -1131,6 +1131,11 @@ impl<'a, 'b> AtRuleParser for NestedRuleParser<'a, 'b> { } else { None }; + if cfg!(feature = "servo") && + prefix.as_ref().map_or(false, |p| matches!(*p, VendorPrefix::Moz)) { + // Servo should not support @-moz-keyframes. + return Err(()) + } let name = match input.next() { Ok(Token::Ident(ref value)) if value != "none" => Atom::from(&**value), Ok(Token::QuotedString(value)) => Atom::from(&*value),