cssshrink icon indicating copy to clipboard operation
cssshrink copied to clipboard

Prefixed pseudo-classes are not working

Open vincentorback opened this issue 11 years ago • 8 comments

Hey @stoyan and thanks for this awesome project!

I found a small issue with prefixed pseudo-classes such as ::-webkit-input-placeholder.

They wont work if they are stacked after each other like this:

::-webkit-input-placeholder, :-moz-placeholder, ::-moz-placeholder, :-ms-input-placeholder {
  color: red;
}

So instead they need to be broken down like this:

::-webkit-input-placeholder {
  color: red;
}
:-moz-placeholder {
  color: red;
}
::-moz-placeholder {
  color: red;
}
:-ms-input-placeholder {
  color: red;
}

Unfortunately I’m not so node-savy yet so i couldn't make a pull-request. But here’s a jsfiddle with the issue. This is also the issue with ::selection but that’s not a CSS standard yet.

vincentorback avatar Jul 06 '14 20:07 vincentorback

+1 for fixing this, it’s really annoying

pepelsbey avatar Jul 28 '14 15:07 pepelsbey

+1, I had to remove it from our company workflow after a short trial that revealed broken placeholder styles everywhere

tbredin avatar Jul 30 '14 00:07 tbredin

+1, i've encountered the same issue

febLey avatar Sep 24 '14 06:09 febLey

+1

marcobiedermann avatar Oct 23 '14 20:10 marcobiedermann

+1

stefanmaric avatar Dec 23 '14 18:12 stefanmaric

+1

frontend-3 avatar Jul 10 '15 23:07 frontend-3

+1 and has anyone found a solution-workaround for this?

diego06884 avatar Nov 24 '15 00:11 diego06884

You can use this https://github.com/Lukavyi/stylus-input-placeholder-mixin

frontend-3 avatar Feb 25 '16 16:02 frontend-3