From 3af69cf9bfff4e717fc87298d376a5ece6e2abaa Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Fri, 21 Apr 2017 18:12:10 +0900 Subject: [PATCH] Servo does not need to support -moz-keyframes --- components/style/stylesheets.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/style/stylesheets.rs b/components/style/stylesheets.rs index 3cab9329a7f2..8d2c59744b50 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),