@@ -7,7 +7,7 @@ pub use float_pigment_css::length_num::LengthNum;
77use float_pigment_css:: {
88 parser:: parse_inline_style,
99 property:: NodeProperties ,
10- typing:: { AspectRatio , Display } ,
10+ typing:: { AspectRatio , Display , Gap } ,
1111} ;
1212pub use float_pigment_forest:: Len ;
1313use float_pigment_forest:: { layout:: LayoutPosition , node:: Length , * } ;
@@ -389,6 +389,36 @@ impl TestCtx {
389389 } ,
390390 "order" => node. set_order ( node_props. order ( ) . to_i32 ( ) ) ,
391391 "text-align" => node. set_text_align ( node_props. text_align ( ) ) ,
392+ "gap" => {
393+ node. set_row_gap ( {
394+ match node_props. row_gap ( ) {
395+ Gap :: Length ( l) => def_length ( l) ,
396+ Gap :: Normal => Length :: Undefined ,
397+ }
398+ } ) ;
399+ node. set_column_gap ( {
400+ match node_props. column_gap ( ) {
401+ Gap :: Length ( l) => def_length ( l) ,
402+ Gap :: Normal => Length :: Undefined ,
403+ }
404+ } ) ;
405+ }
406+ "column-gap" => {
407+ node. set_column_gap ( {
408+ match node_props. column_gap ( ) {
409+ Gap :: Length ( l) => def_length ( l) ,
410+ Gap :: Normal => Length :: Undefined ,
411+ }
412+ } ) ;
413+ }
414+ "row-gap" => {
415+ node. set_row_gap ( {
416+ match node_props. row_gap ( ) {
417+ Gap :: Length ( l) => def_length ( l) ,
418+ Gap :: Normal => Length :: Undefined ,
419+ }
420+ } ) ;
421+ }
392422 _ => { }
393423 }
394424 } ) ;
0 commit comments