css / csso

CSS minifier with structural optimizations
https://css.github.io/csso/csso.html
MIT License
3.76k stars 187 forks source link

Fix rules inside at-rules not being added to `disallowDownMarkers` #413

Closed charlessuh closed 4 years ago

charlessuh commented 4 years ago

Attempts to address #358 by disabling the "merge down" optimization in a few more cases.

The test files here should clearly demonstrate incorrectly restructured output (when running against the current version of csso.)

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.003%) to 99.34% when pulling eba9bbe2386add1546790948819114e653433790 on charlessuh:master into 1364c68c357104c0301775da3d669b03b5438bf2 on css:master.

lahmatiy commented 4 years ago

Not sure this fixes all the cases. However it's better than before, so I'm going to merge it. Thank you!