Closed pvkekem closed 3 years ago
Good find on the bug.
This change looks a bit too aggressive. Surely this will now add whitespace to many places it wasn't before, fixing the bug but reducing compression performance.
The test suite isnt necessarilly 100% complete. Those removed parentheses were in the code for a reason, can we evaluate what scenario they covered and be a bit more optimal?
Good call, I've reduced the change to just the closing parenthese in the space after. That solves my issue, and still passes all other tests. I've also added some more CSS to validate in the test, including some spaces, which also passes.
The following selector now minifies correct:
:is(.container) :is(.bold){font-weight: bold;}