Use helpers.predefined_type for transform property.

This commit is contained in:
Xidorn Quan 2017-11-03 15:19:56 +11:00
parent 0047c77f03
commit 79fb584eac
7 changed files with 46 additions and 52 deletions

View file

@ -450,3 +450,10 @@ impl<T: ToCss> ToCss for Transform<T> {
Ok(())
}
}
impl<T> Transform<T> {
/// `none`
pub fn none() -> Self {
Transform(vec![])
}
}