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

bug on pseudo classes

Open ArthurPERE opened this issue 3 years ago • 0 comments

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):

  • OS: Ubuntu 22.04.1 LTS
  • Version :
    • codium version 1.74.2
    • JS & CSS Minifier (Minify) v3.3.3

Regards, Arthur

ArthurPERE avatar Jan 06 '23 17:01 ArthurPERE