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 @@ -155,6 +155,7 @@ const parsers: {
155155 "container-name" : parseContainerName ,
156156 "container-type" : parseContainerType ,
157157 "display" : parseDisplay ,
158+ "direction" : parseDirection ,
158159 "fill" : parseSVGPaint ,
159160 "filter" : parseFilter ,
160161 "flex" : parseFlex ,
@@ -2417,6 +2418,19 @@ export function parseDisplay(
24172418 }
24182419}
24192420
2421+ export function parseDirection (
2422+ declaration : DeclarationType < "direction" > ,
2423+ builder : StylesheetBuilder ,
2424+ ) {
2425+ if ( [ "ltr" , "rtl" ] . includes ( declaration . value ) ) {
2426+ builder . addDescriptor ( "direction" , declaration . value ) ;
2427+ builder . addDescriptor ( "--__rn-css-direction" , declaration . value ) ;
2428+ }
2429+
2430+ builder . addWarning ( "value" , declaration . value ) ;
2431+ return ;
2432+ }
2433+
24202434export function parseAspectRatio ( {
24212435 value,
24222436} : DeclarationType < "aspect-ratio" > ) : StyleDescriptor {
You can’t perform that action at this time.
0 commit comments