mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Allow animation-name to be omitted from shorthand
This commit is contained in:
parent
d2bb111ff2
commit
bfa847bad7
1 changed files with 19 additions and 22 deletions
|
@ -198,9 +198,9 @@ macro_rules! try_parse_one {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(name) = name {
|
|
||||||
Ok(SingleAnimation {
|
Ok(SingleAnimation {
|
||||||
animation_name: name,
|
animation_name:
|
||||||
|
name.unwrap_or_else(animation_name::single_value::get_initial_specified_value),
|
||||||
animation_duration:
|
animation_duration:
|
||||||
duration.unwrap_or_else(animation_duration::single_value::get_initial_value),
|
duration.unwrap_or_else(animation_duration::single_value::get_initial_value),
|
||||||
animation_timing_function:
|
animation_timing_function:
|
||||||
|
@ -217,9 +217,6 @@ macro_rules! try_parse_one {
|
||||||
animation_play_state:
|
animation_play_state:
|
||||||
play_state.unwrap_or_else(animation_play_state::single_value::get_initial_value),
|
play_state.unwrap_or_else(animation_play_state::single_value::get_initial_value),
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
Err(())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut names = vec![];
|
let mut names = vec![];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue