HTML input fields can have a placeholder text that is shown while the field is empty. You can style the look of this text with the ::placeholder pseudo class. But there's a problem: This CSS breaks as soon as there is an unknown pseudo class present in the statement.
So this works:
.header-search-input::placeholder {
color: red;
}
... but this doesn't (in Chrome):
.header-search-input::-moz-placeholder,
.header-search-input::placeholder {
color: red;
}
... because the browser expects this to be done like so:
.header-search-input::-moz-placeholder {
color: red;
}
.header-search-input::placeholder {
color: red;
}
Fiddle: https://jsfiddle.net/eqftxyc6/2/
Is there a way to prevent these prefixes from being auto-generated by the SCSS compiler, or to get it to compile them correctly?