Why does this work in Chrome:
.amsearch-input::-webkit-input-placeholder {
color: red;
}
<input class="amsearch-input" placeholder="It works!" />
...but this doesn't:
.amsearch-input::-webkit-input-placeholder,
.amsearch-input::-moz-placeholder,
.amsearch-input::-ms-placeholder,
.amsearch-input::placeholder {
color: red;
}
<input class="amsearch-input" placeholder="It fails! :(" />
That's common error when trying to deal with selectors containing vendor prefixes.
The issue here is that
Source: developer.mozilla.org/en-US/docs/Web/CSS/Webkit_Extensions
There is also an article on css-tricks which you can read to get more context about this One Invalid Pseudo Selector Equals an Entire Ignored Selector
To fix it and make your code more sustainable you need to separate your rules like this: