closure-stylesheets icon indicating copy to clipboard operation
closure-stylesheets copied to clipboard

RTL flipping does not handle transform, linear-gradient properties

Open akbertram opened this issue 6 years ago • 0 comments

When flipping CSS from LTR to RTL, the transform property also needs to be mirrored, mostly by reversing the sign of translations and rotations:

transform: translateX(35px);

should become:

transform: translateX(-35px);

And

 background-image: linear-gradient(45deg, #00CF79 0%, #00cfcd 100%);

should become:

 background-image: linear-gradient(-45deg, #00CF79 0%, #00cfcd 100%);

Is there perhaps a fix for this upstream, or would you be open to a PR?

akbertram avatar Oct 17 '19 08:10 akbertram