/* ** ** custom select color ** ** */
::selection {
background: #525252; /* Safari */
}
::-moz-selection {
background: #525252; /* Firefox */
color:#fff;
}
The above code is not passing the W3C validator, but I can't understand the reason for it.
The following error is returned:
The pseudo-element ::selection can't appear here in the context css21 [selection]
The pseudo-element ::-moz-selection can't appear here in the context css21 [-moz-selection]
