Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sebastiansandqvist opened this issue Sep 13, 2014 · 0 comments

Comments

@sebastiansandqvist
Copy link

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 #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant