--- a/servo/components/style/properties/shorthand/box.mako.rs
+++ b/servo/components/style/properties/shorthand/box.mako.rs
@@ -199,23 +199,21 @@ macro_rules! try_parse_one {
% endfor
})
}
% for prop in props:
let mut ${prop}s = vec![];
% endfor
- if input.try(|input| input.expect_ident_matching("none")).is_err() {
- let results = try!(input.parse_comma_separated(|i| parse_one_animation(context, i)));
- for result in results.into_iter() {
- % for prop in props:
- ${prop}s.push(result.animation_${prop});
- % endfor
- }
+ let results = try!(input.parse_comma_separated(|i| parse_one_animation(context, i)));
+ for result in results.into_iter() {
+ % for prop in props:
+ ${prop}s.push(result.animation_${prop});
+ % endfor
}
Ok(Longhands {
% for prop in props:
animation_${prop}: animation_${prop}::SpecifiedValue(${prop}s),
% endfor
})
}