Make animation-name parse none

This commit is contained in:
Xidorn Quan 2017-03-06 22:00:04 +11:00
parent 4bc0cac395
commit 6273fa0305
6 changed files with 53 additions and 12 deletions

View file

@ -1295,6 +1295,14 @@ pub mod style_structs {
}
% endif
% endfor
% if style_struct.name == "Box":
/// Returns whether there is any animation specified with
/// animation-name other than `none`.
pub fn specifies_animations(&self) -> bool {
self.animation_name_iter().any(|name| name.0 != atom!(""))
}
% endif
}
% for longhand in style_struct.longhands: