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: Whitespace between values isn't collapsed #740

Open
thatguystone opened this issue Sep 7, 2024 · 1 comment
Open

css: Whitespace between values isn't collapsed #740

thatguystone opened this issue Sep 7, 2024 · 1 comment

Comments

@thatguystone
Copy link

The following css isn't minified properly:

:root { --v: 1px   2px }
:root { --v: a,   b,   c; }
:root { --v: a,
        b,
        c;
}

Got:

:root{--v:1px   2px}:root{--v:a,   b,   c}:root{--v:a,
        b,
        c}

Expected:

:root{--v:1px 2px}:root{--v:a,b,c}:root{--v:a,b,c}

Playground link

@tdewolff
Copy link
Owner

Sorry for the late response, but the CSS minifier is somewhat primitive as of yet. However, custom attributes are notoriously restrictive in the amount of minification, though stripping whitespace seems harmless.

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