Allow animation-name to be omitted from shorthand

This commit is contained in:
Xidorn Quan 2017-03-02 17:59:27 +11:00
parent 88772f9cb9
commit a06b3f2039

View file

@ -198,9 +198,9 @@ macro_rules! try_parse_one {
break
}
if let Some(name) = name {
Ok(SingleAnimation {
animation_name: name,
animation_name:
name.unwrap_or_else(animation_name::single_value::get_initial_specified_value),
animation_duration:
duration.unwrap_or_else(animation_duration::single_value::get_initial_value),
animation_timing_function:
@ -217,9 +217,6 @@ macro_rules! try_parse_one {
animation_play_state:
play_state.unwrap_or_else(animation_play_state::single_value::get_initial_value),
})
} else {
Err(())
}
}
let mut names = vec![];