Skip to content

Feature Request: Add support for standalone rotate and translate CSS properties #351

@natalia-beloeva

Description

@natalia-beloeva

Hi! Thank you for maintaining this excellent library. I'd like to propose adding support for the standalone rotate and translate CSS properties that have been widely supported by browsers for several years now. They offer better performance and easier manipulation than the traditional transform property.

References
MDN rotate: https://developer.mozilla.org/en-US/docs/Web/CSS/rotate
MDN translate: https://developer.mozilla.org/en-US/docs/Web/CSS/translate

Currently, rtlcss doesn't handle these standalone properties for RTL transformation:

/* LTR */
.element {
  rotate: 45deg;
  translate: 10px 20px;
}

/* Expected RTL output */
.element {
  rotate: -45deg;
  translate: -10px 20px;
}

Would it be possible to add support for these properties in a future release?
Thanks for considering this request!

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