csso
csso copied to clipboard
CSS error breaks optimization
Hello. This code can't be minified:
.marquee p:nth-child {
color:red;
}
The error text:
/usr/lib/node_modules/csso-cli/node_modules/csso/cjs/restructure/prepare/specificity.cjs:80
const arg = node.children.first;
Online service https://css.github.io/csso/csso.html shows error too.
How do you expect to minify this invalid CSS? Drop it entirely?
I think yes, drop it entirely is a best choose. This code can't be used by browsers.