Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Ignore symmetric values #54

Open
Ansimorph opened this issue Dec 18, 2019 · 0 comments
Open

Feature request: Ignore symmetric values #54

Ansimorph opened this issue Dec 18, 2019 · 0 comments

Comments

@Ansimorph
Copy link

When generating ltr/rtl variants of values that are mirror-symmetrical, postcss-rtl actually creates values that are identical for both versions and therefor add unecessary code to the css file.

For example:

.a {
  padding-left: 2px;
  padding-right: 2px;
}

Is transformed into

[dir=ltr] .a {
  padding-left: 2px;
  padding-right: 2px;
}

[dir=rtl] .a {
  padding-right: 2px;
  padding-left: 2px;
}

This could stay the way it is and not add more code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant