minify icon indicating copy to clipboard operation
minify copied to clipboard

css: Whitespace between values isn't collapsed

Open thatguystone opened this issue 1 year ago • 1 comments

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

thatguystone avatar Sep 07 '24 03:09 thatguystone

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.

tdewolff avatar Oct 24 '24 16:10 tdewolff