stoyan / cssshrink

CSS minifier
1.05k stars 81 forks source link

::selection and ::-moz-selection selectors must be defined separately to work #20

Open sebastiansandqvist opened 10 years ago

sebastiansandqvist commented 10 years ago

I'm encountering a bug where the ::selection and ::moz-selection selectors have to be defined as separate rules in order to work. So, the following code will run correctly in Chrome:

::selection {
  background: #f42;
  color: #fff;
}

::-moz-selection {
  background: #f42;
  color: #fff;
}

But this will not:

::-moz-selection,
::selection {
  background: #f42;
  color: #fff;
}

The same is true for ::placeholder and similar selectors. This is the only thing preventing me from using cssshrink in production.

EDIT This is a duplicate of https://github.com/stoyan/cssshrink/issues/14