mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
style: Part 2: Add animation-timeline into animation shorthand
We use the same rule as blink: serialize the animation-timeline if it is not the default value. Differential Revision: https://phabricator.services.mozilla.com/D126451
This commit is contained in:
parent
2a7436481c
commit
c21a0dcc96
2 changed files with 36 additions and 4 deletions
|
@ -794,6 +794,11 @@ impl AnimationTimeline {
|
|||
pub fn auto() -> Self {
|
||||
Self::Auto
|
||||
}
|
||||
|
||||
/// Returns true if it is auto (i.e. the default value).
|
||||
pub fn is_auto(&self) -> bool {
|
||||
matches!(self, Self::Auto)
|
||||
}
|
||||
}
|
||||
|
||||
impl Parse for AnimationTimeline {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue