I'm trying to style my input placeholder property only when the input is read-only but I can't seem to get the two selectors to work together, is this possible? I've tried a few variations but thought the below should work;
input:read-only + ::placeholder { color: black !important; }
...and to ensure max browser comptibility
input:read-only + ::-webkit-input-placeholder, input:read-only + ::placeholder, input:-moz-read-only + ::placeholder, input:read-only + ::-ms-input-placeholder { color: black !important; }
None of these work, is this possible? Where am I going wrong?