From 448b74ba1881d9d6b5f7ba4ccbfec13a3b5d207f Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Mon, 13 Mar 2017 12:42:17 +0900 Subject: [PATCH] Cascade animation-name property earlier than other animation properties. As per the CSS Animations spec, in the case when multiple values for an animation property are set, if the value length is less than the length of animation-name property, then shortage values are filled up. Because of this we need to know the length of animation-name proper before we set other animation properties, so we need to cascade animation-name property earlier than other animation properties. We do the same thing for transition-property. --- components/style/properties/properties.mako.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index 3e7398ab15f..b8153417a78 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -1957,6 +1957,8 @@ pub fn apply_declarations<'a, F, I>(viewport_size: Size2D, PropertyDeclaration::Direction(_) % if product == 'gecko': | PropertyDeclaration::TextOrientation(_) + | PropertyDeclaration::AnimationName(_) + | PropertyDeclaration::TransitionProperty(_) % endif ); if