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 @@ -157,6 +157,7 @@ const parsers: {
157157 "container-name" : parseContainerName ,
158158 "container-type" : parseContainerType ,
159159 "display" : parseDisplay ,
160+ "direction" : parseDirection ,
160161 "fill" : parseSVGPaint ,
161162 "filter" : parseFilter ,
162163 "flex" : parseFlex ,
@@ -2450,6 +2451,19 @@ export function parseDisplay(
24502451 }
24512452}
24522453
2454+ export function parseDirection (
2455+ declaration : DeclarationType < "direction" > ,
2456+ builder : StylesheetBuilder ,
2457+ ) {
2458+ if ( [ "ltr" , "rtl" ] . includes ( declaration . value ) ) {
2459+ builder . addDescriptor ( "direction" , declaration . value ) ;
2460+ builder . addDescriptor ( "--__rn-css-direction" , declaration . value ) ;
2461+ }
2462+
2463+ builder . addWarning ( "value" , declaration . value ) ;
2464+ return ;
2465+ }
2466+
24532467export function parseAspectRatio ( {
24542468 value,
24552469} : DeclarationType < "aspect-ratio" > ) : StyleDescriptor {
You can’t perform that action at this time.
0 commit comments