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:
Boris Chiou 2023-05-27 15:05:39 +02:00 committed by Oriol Brufau
parent 2a7436481c
commit c21a0dcc96
2 changed files with 36 additions and 4 deletions

View file

@ -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 {