File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import type {
15
15
FontStyle ,
16
16
FontVariantCaps ,
17
17
FontWeight ,
18
+ GapValue ,
18
19
Gradient ,
19
20
GradientItemFor_DimensionPercentageFor_LengthValue ,
20
21
Length ,
@@ -2065,8 +2066,14 @@ export function parseGap(
2065
2066
builder : StylesheetBuilder ,
2066
2067
) {
2067
2068
if ( "column" in declaration . value ) {
2068
- builder . addDescriptor ( "row-gap" , parseGap ( declaration , builder ) ) ;
2069
- builder . addDescriptor ( "column-gap" , parseGap ( declaration , builder ) ) ;
2069
+ builder . addDescriptor (
2070
+ "row-gap" ,
2071
+ parseGapValue ( declaration . value . row , builder ) ,
2072
+ ) ;
2073
+ builder . addDescriptor (
2074
+ "column-gap" ,
2075
+ parseGapValue ( declaration . value . column , builder ) ,
2076
+ ) ;
2070
2077
2071
2078
return ;
2072
2079
} else {
@@ -2079,6 +2086,17 @@ export function parseGap(
2079
2086
}
2080
2087
}
2081
2088
2089
+ function parseGapValue (
2090
+ value : GapValue ,
2091
+ builder : StylesheetBuilder ,
2092
+ ) : StyleDescriptor {
2093
+ if ( value . type === "normal" ) {
2094
+ return ;
2095
+ } else {
2096
+ return parseLength ( value . value , builder ) ;
2097
+ }
2098
+ }
2099
+
2082
2100
export function parseTextAlign (
2083
2101
{ value } : DeclarationType < "text-align" > ,
2084
2102
builder : StylesheetBuilder ,
You can’t perform that action at this time.
0 commit comments