::selection { background: #000000; color: #ffffff }
The result is a dark gray highlight, not a full black ( #000000). Changing transparency does not matter.
#000000
How to make the highlight color displayed as #ffffff?
#ffffff
This worked for me:
::selection { background: rgba(0, 0, 0, 0.99); color: #FFF; }
I had the same problem, I had to change the code to the background color, because this solution did not work for me.
::selection { background-color: #000000; color: #FFF; }