Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS error breaks optimization #479

Open
PavelFil opened this issue Mar 3, 2024 · 2 comments
Open

CSS error breaks optimization #479

PavelFil opened this issue Mar 3, 2024 · 2 comments

Comments

@PavelFil
Copy link

PavelFil commented Mar 3, 2024

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.

@dryabov
Copy link

dryabov commented Mar 3, 2024

How do you expect to minify this invalid CSS? Drop it entirely?

@PavelFil
Copy link
Author

PavelFil commented Mar 3, 2024

I think yes, drop it entirely is a best choose. This code can't be used by browsers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants