Closed bennypowers closed 3 years ago
Hello @bennypowers can you please try by providing {level: { 1: { tidySelectors: false } }}
option object to the plugin?
Options reference is here
Added a test to prove it works: https://github.com/leodido/postcss-clean/blob/56650c894c4938b8c4b1a6eb2e1e212a6b2feab0/test.js#L207
Disabling the option is a workaround, but not really a solution. The upstream issue involves spaces in any pseudo classe: https://github.com/jakubpawlowicz/clean-css/issues/996
Ex: :not(.complex .selector)
will transform to :not(.complex.selector)
Updating clean-css after that issue is resolved should fix the problem.
Consider an element with id
shadow
whose Shadow Root has this content:And a containing root with these rules
Expected
Before processing, the element will display a red
A
; a red and boldA B
; and a red, bold, and largeA B C
; I would expect styles to compile toActual
After processing, the styles were transformed to
And the element displays a red
A A B A B C
, but nothing bold or large.Thank you for publishing this useful package