I set the selection color in my css file, using a hexadecimal value. The thing is, Firefox and Chrome do not render the same color out of this.
Do I need to specify something to make the code render the same?
I tried using the -webkit-
and got nothing out of it. The hexadecimal value is the exact same I used for the text color. Everything, from rendering color to JS animations works perfectly with Firefox and IE, but Chrome does weird things.
On Chrome:
On Firefox:
::selection {
background: #f997f1;
}
::-webkit-selection {
background: #f997f1;
}
::-moz-selection {
background: #f997f1;
}
body {
background: lightblue;
}
p {
font-family: sans-serif;
font-size: 2em;
color: #f997f1;
}
<p>Some text to select</p>