//! CSS properties related to transitions. use super::{Property, PropertyId}; use crate::compat; use crate::context::PropertyHandlerContext; use crate::declaration::{DeclarationBlock, DeclarationList}; use crate::error::{ParserError, PrinterError}; use crate::macros::{define_list_shorthand, enum_property}; use crate::prefixes::Feature; use crate::printer::Printer; use crate::properties::masking::get_webkit_mask_property; use crate::traits::{Parse, PropertyHandler, Shorthand, ToCss, Zero}; use crate::values::ident::CustomIdent; use crate::values::number::NonNegative; use crate::values::{easing::EasingFunction, time::Time}; use crate::vendor_prefix::VendorPrefix; #[cfg(feature = "visitor")] use crate::visitor::Visit; use cssparser::*; use itertools::izip; use smallvec::SmallVec; define_list_shorthand! { /// A value for the [transition](https://www.w3.org/TR/2018/WD-css-transitions-1-20181011/#transition-shorthand-property) property. pub struct Transition<'i>(VendorPrefix) { /// The property to transition. #[cfg_attr(feature = "serde", serde(borrow))] property: TransitionProperty(PropertyId<'i>, VendorPrefix), /// The duration of the transition. duration: TransitionDuration(NonNegative