Skip to content

[babel-plugin] Create a set of custom "logical" property functions #1232

@mellyeliu

Description

@mellyeliu

Describe the feature request

For properties like transform

The majority of our leftover usages of /* @ltr-begin */ strings come from transform styles that should be flipped in RTL. For example:

transform: rotate(-45deg); 
/* @rtl begin */ 
transform: rotate(45deg); 
/* @rtl end */

We could either a set of basic supported CSS variables that autoflip based on [dir="rtl"]or create a config to allow users to define such a set to mimic logical behaviour for properties without such an equivalent

Similar to the proposed float polyfill here: #1217

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions