Visitar URL original
CSS error breaks optimization · Issue #479 · css/csso · GitHub
Skip to content

CSS error breaks optimization #479

Open

Description

@PavelFil

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.

Activity

  1. dryabov commented on Mar 3, 2024

    @dryabov

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

  2. PavelFil commented on Mar 3, 2024

    @PavelFil
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions