When using rtlcss as a processing step before other PostCSS plugin's I'm having issues with them picking up on changes made by rtlcss because of the way it updates the AST.
This is due to rtlcss modifying the raw.value.raw css, while postcss-custom-properties reads the .value. I don't know which is more correct, I've just noted that lots of other PostCSS plugins mutate decl.value.
I can do a PR, but all it really takes is to append node.value = node.raws.value.raw after lib/rtlcss.js#L106
When using
rtlcss
as a processing step before other PostCSS plugin's I'm having issues with them picking up on changes made byrtlcss
because of the way it updates the AST.Consider the following css:
Processing:
Output:
This is due to
rtlcss
modifying theraw.value.raw
css, whilepostcss-custom-properties
reads the.value
. I don't know which is more correct, I've just noted that lots of other PostCSS plugins mutatedecl.value
.I can do a PR, but all it really takes is to append
node.value = node.raws.value.raw
afterlib/rtlcss.js#L106