Handling of more selectors than html and root
AlexisCharp opened this issue · 2 comments
AlexisCharp commented
First of all, thanks for this plugin as it works very well.
However, I had a problem when I modified the selector in which the custom-properties are declared.
I moved from
:root {...} to :root, ::backdrop {...}
Then it stopped working because the plugin is searching for a /^:root$/i selector.
Is there any particular reason for restricting the use of root alone ?
AlexisCharp commented
Also, as this plugin appears to not be maintained anymore, do you have replacement ideas ? Couldn't find something similar :(
Antonio-Laguna commented
@AlexisCharp as you noticed this plugin is no longer maintained since the spec died. The closest one would be @csstools/postcss-relative-color-syntax for which we wrote an article not so long ago!
Hope that's helpful