diff --git a/components/style/properties/helpers/animated_properties.mako.rs b/components/style/properties/helpers/animated_properties.mako.rs index 9c7dada855e..7ec46e31214 100644 --- a/components/style/properties/helpers/animated_properties.mako.rs +++ b/components/style/properties/helpers/animated_properties.mako.rs @@ -81,6 +81,7 @@ impl TransitionProperty { /// Get a transition property from a property declaration. pub fn from_declaration(declaration: &PropertyDeclaration) -> Option { + use properties::LonghandId; match *declaration { % for prop in data.longhands: % if prop.animatable: @@ -88,6 +89,18 @@ impl TransitionProperty { => Some(TransitionProperty::${prop.camel_case}), % endif % endfor + PropertyDeclaration::CSSWideKeyword(id, _) | + PropertyDeclaration::WithVariables(id, _) => { + match id { + % for prop in data.longhands: + % if prop.animatable: + LonghandId::${prop.camel_case} => + Some(TransitionProperty::${prop.camel_case}), + % endif + % endfor + _ => None, + } + }, _ => None, } }