@@ -2058,6 +2058,42 @@ mod flex {
20582058 test_parse_property ! ( order, "order" , "1" , Number :: I32 ( 1 ) ) ;
20592059 test_parse_property ! ( order, "order" , "-100" , Number :: I32 ( -100 ) ) ;
20602060 }
2061+ // 0x2b
2062+ #[ test]
2063+ fn row_gap ( ) {
2064+ test_parse_property ! ( row_gap, "row-gap" , "normal" , Gap :: Normal ) ;
2065+ test_parse_property ! ( row_gap, "row-gap" , "10px" , Gap :: Length ( Length :: Px ( 10. ) ) ) ;
2066+ }
2067+
2068+ // 0x2c
2069+ #[ test]
2070+ fn column_gap ( ) {
2071+ test_parse_property ! ( column_gap, "column-gap" , "normal" , Gap :: Normal ) ;
2072+ test_parse_property ! ( column_gap, "column-gap" , "-10%" , Gap :: Normal ) ;
2073+ }
2074+
2075+ #[ test]
2076+ fn gap ( ) {
2077+ test_parse_property ! ( row_gap, "gap" , "normal" , Gap :: Normal ) ;
2078+ test_parse_property ! ( column_gap, "gap" , "normal" , Gap :: Normal ) ;
2079+
2080+ test_parse_property ! ( row_gap, "gap" , "30px" , Gap :: Length ( Length :: Px ( 30. ) ) ) ;
2081+ test_parse_property ! ( column_gap, "gap" , "20px" , Gap :: Length ( Length :: Px ( 20. ) ) ) ;
2082+
2083+ test_parse_property ! ( row_gap, "gap" , "normal 10px" , Gap :: Normal ) ;
2084+ test_parse_property ! ( row_gap, "gap" , "10px normal" , Gap :: Length ( Length :: Px ( 10. ) ) ) ;
2085+ test_parse_property ! (
2086+ column_gap,
2087+ "gap" ,
2088+ "normal 10px" ,
2089+ Gap :: Length ( Length :: Px ( 10. ) )
2090+ ) ;
2091+ test_parse_property ! ( column_gap, "gap" , "10px normal" , Gap :: Normal ) ;
2092+
2093+ test_parse_property ! ( row_gap, "gap" , "30px 40px" , Gap :: Length ( Length :: Px ( 30. ) ) ) ;
2094+ test_parse_property ! ( column_gap, "gap" , "30px 40px" , Gap :: Length ( Length :: Px ( 40. ) ) ) ;
2095+ }
2096+
20612097 #[ test]
20622098 fn flex_flow ( ) {
20632099 let mut ssg = StyleSheetGroup :: new ( ) ;
0 commit comments