I'd like to change it from the default blue and can't seem to find anything on this. The usual doesn't work:
::-moz-selection, ::selection {
background: #AFAFAF;
}
::-moz-selection
and ::selection
are browser specific pseudo classes. If one vendor browser(chrome) doesn't understand other vendor browser's prefix, it ignores the rules under that block. So it is recommended to separate browser specific pseudoclasses.
::-moz-selection {
background: #AFAFAF;
}
::-webkit-selection {
background: #AFAFAF;
}
::selection {
background: #AFAFAF;
}