GoogleChromeLabs / critters

🦔 A Webpack plugin to inline your critical CSS and lazy-load the rest.
https://npm.im/critters-webpack-plugin
Apache License 2.0
3.42k stars 108 forks source link

fix: handle sub-selector with both classes and pseudo selectors #129

Closed alan-agius4 closed 1 year ago

alan-agius4 commented 1 year ago

Prior to this change sub-selectors where incorrectly processed.

Example div:is(:hover, .active) would be turned into div:is(, .active) which caused the parser to emit an Empty sub-selector error.

//cc @janicklas-ralph