olback / es6-css-minify

Easily minify CSS and JavaScript in VS Code
https://marketplace.visualstudio.com/items?itemName=olback.es6-css-minify
MIT License
47 stars 13 forks source link

bug on pseudo classes #155

Open ArthurPERE opened 1 year ago

ArthurPERE commented 1 year ago

Describe the bug Hello, I found a bug in the css part, when using pseudo class, all the spaces are removed inside the parenthesis.

To Reproduce Steps to reproduce the behavior:

Copy and paste this in a css file.

table :is(tbody tr, thead th) {
  background-color: red;
  margin: 2px;
}

And minify it, you will obtain :

table :is(tbodytr,theadth){background-color:red;margin:2px}

the tbody is glued to the tr and the thead is glued to the th.

Expected behavior The behavior I expected is this is the minifyed file :

table :is(tbody tr,thead th){background-color:red;margin:2px}

With, for this example, the tbody and tr with a space between.

Desktop (please complete the following information):

Regards, Arthur