Skip to content

Feature request: Ignore symmetric values #54

@Ansimorph

Description

@Ansimorph

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions