Closed ayastreb closed 3 years ago
hi @Andarist! did you have a chance to look at this issue/MR? Would it be possible to merge/publish the fix?
Thanks for a ping - I've found some problems with your proposed fix. I can't say I fully understand the original issue nor the extra issue that I have found but after some thinking, I've found a way to simplify the implementation a lot (by preparing the scoped selectors once, in the beginning, instead of trying to fix things for all generated rules).
I hope to release a new version with this tomorrow.
Awesome, thanks!
If there's at least one media-query in the style, it's breaking pseudo and nested selectors. See reproduction here: https://codesandbox.io/s/increase-css-specificity-forked-lum7o
Notice that
:hover
selector doesn't work, because CSS generated for it is:the scope is added twice and therefor CSS is not applied