Skip to content

Issue with :not() selector followed by other selector #4

@JohnKis

Description

@JohnKis

Hi there,

First of all thanks for package, it comes really handy if need to minify css on the fly in the browser.

I noticed a minor issue with :not() selectors. If it is followed by another selector, the whitespace between the closing ')' and the next selector will get removed which changes the selector.

Example

Source:

div:not(empty) .main {
   display: block;
}

Result

div:not(empty).main{display:block}

Expected:

div:not(empty) .main{display:block}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions