@@ -9,6 +9,7 @@ pub mod box_shadow;
99pub mod border;
1010pub mod border_image;
1111pub mod border_radius;
12+ pub mod transition;
1213
1314use cssparser:: * ;
1415use custom:: * ;
@@ -21,6 +22,7 @@ use box_shadow::*;
2122use border:: * ;
2223use border_image:: * ;
2324use border_radius:: * ;
25+ use transition:: * ;
2426use crate :: values:: { image:: * , length:: * , rect:: * , color:: * , time:: Time , ident:: CustomIdent , easing:: EasingFunction } ;
2527use crate :: traits:: { Parse , ToCss } ;
2628use crate :: printer:: Printer ;
@@ -234,7 +236,8 @@ pub enum Property {
234236 TransitionProperty ( Vec < CustomIdent > ) ,
235237 TransitionDuration ( Vec < Time > ) ,
236238 TransitionDelay ( Vec < Time > ) ,
237- TransitionTimingFunction ( Vec < EasingFunction > )
239+ TransitionTimingFunction ( Vec < EasingFunction > ) ,
240+ Transition ( Vec < Transition > )
238241}
239242
240243impl Property {
@@ -430,6 +433,7 @@ impl Property {
430433 "transition-duration" => property ! ( TransitionDuration , Time , true ) ,
431434 "transition-delay" => property ! ( TransitionDelay , Time , true ) ,
432435 "transition-timing-function" => property ! ( TransitionTimingFunction , EasingFunction , true ) ,
436+ "transition" => property ! ( Transition , Transition , true ) ,
433437 _ => { }
434438 }
435439
@@ -633,6 +637,7 @@ impl Property {
633637 TransitionDuration ( val) => property ! ( "transition-duration" , val, true ) ,
634638 TransitionDelay ( val) => property ! ( "transition-delay" , val, true ) ,
635639 TransitionTimingFunction ( val) => property ! ( "transition-timing-function" , val, true ) ,
640+ Transition ( val) => property ! ( "transition" , val, true ) ,
636641 Custom ( custom) => {
637642 dest. write_str ( custom. name . as_ref ( ) ) ?;
638643 dest. delim ( ':' , false ) ?;
0 commit comments