css-minify icon indicating copy to clipboard operation
css-minify copied to clipboard

Support pseudo classes without selector

Open Brixy opened this issue 3 years ago • 1 comments

Hi,

yesterday I raised this issue.

It seems that css-minify is causing the problem:

It should be possibe to use a pseudo class without a selector, e.g. :is() instead of *:is().

/* Original CSS (without `*` selector) */
:is(nav, .posts) a {
	text-decoration: none;
}
/* Minified CSS (error) */
:is(nav{text-decoration:none}
/* Original CSS (with `*` selector) */
:is(nav, .posts) a {
	text-decoration: none;
}
/* Minified CSS (correct) */
*:is(nav,.posts) a{text-decoration:none}

Thank you very much!

Brixy avatar Sep 23 '22 08:09 Brixy

Hey! I will try to check it soon.

Mnwa avatar Oct 23 '22 12:10 Mnwa

I added adhoc support on 0.3.1 version

Mnwa avatar Nov 22 '22 12:11 Mnwa

Excellent. Thanks a lot for your efforts.

Brixy avatar Nov 22 '22 13:11 Brixy