File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ const parsers: {
156156 "container-name" : parseContainerName ,
157157 "container-type" : parseContainerType ,
158158 "display" : parseDisplay ,
159+ "direction" : parseDirection ,
159160 "fill" : parseSVGPaint ,
160161 "filter" : parseFilter ,
161162 "flex" : parseFlex ,
@@ -2449,6 +2450,19 @@ export function parseDisplay(
24492450 }
24502451}
24512452
2453+ export function parseDirection (
2454+ declaration : DeclarationType < "direction" > ,
2455+ builder : StylesheetBuilder ,
2456+ ) {
2457+ if ( [ "ltr" , "rtl" ] . includes ( declaration . value ) ) {
2458+ builder . addDescriptor ( "direction" , declaration . value ) ;
2459+ builder . addDescriptor ( "--__rn-css-direction" , declaration . value ) ;
2460+ }
2461+
2462+ builder . addWarning ( "value" , declaration . value ) ;
2463+ return ;
2464+ }
2465+
24522466export function parseAspectRatio ( {
24532467 value,
24542468} : DeclarationType < "aspect-ratio" > ) : StyleDescriptor {
You can’t perform that action at this time.
0 commit comments