diff --git a/components/style/properties/helpers/animated_properties.mako.rs b/components/style/properties/helpers/animated_properties.mako.rs index 41501e5ddd8..eea69199f6b 100644 --- a/components/style/properties/helpers/animated_properties.mako.rs +++ b/components/style/properties/helpers/animated_properties.mako.rs @@ -199,6 +199,16 @@ pub fn nscsspropertyid_is_animatable(property: nsCSSPropertyID) -> bool { ${helpers.to_nscsspropertyid(prop.ident)} => true, % endif % endfor + % for prop in data.shorthands_except_all(): + <% + animatable = "false" + for sub in prop.sub_properties: + if sub.animatable: + animatable = "true" + break + %> + ${helpers.to_nscsspropertyid(prop.ident)} => ${animatable}, + % endfor _ => false } }