Bug 1346655 - Cascade animation-name property ealier than other animation properties. r?heycam
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.
MozReview-Commit-ID: 6xGznOR0FSN
--- a/servo/components/style/properties/properties.mako.rs
+++ b/servo/components/style/properties/properties.mako.rs
@@ -1952,16 +1952,18 @@ pub fn apply_declarations<'a, F, I>(view
PropertyDeclaration::Color(_) |
PropertyDeclaration::Position(_) |
PropertyDeclaration::Float(_) |
PropertyDeclaration::TextDecorationLine(_) |
PropertyDeclaration::WritingMode(_) |
PropertyDeclaration::Direction(_)
% if product == 'gecko':
| PropertyDeclaration::TextOrientation(_)
+ | PropertyDeclaration::AnimationName(_)
+ | PropertyDeclaration::TransitionProperty(_)
% endif
);
if
% if category_to_cascade_now == "early":
!
% endif
is_early_property
{