I want to make it harmonize with a default input color in my original component with HTML and JavaScript(or jQuery). Therefore, I'm looking into the method of getting a standard text selection color.
In CSS, though it is not official, it can change the color of a highlight of the text on modern browsers.
input::selection {
background-color:red;
color:blue;
}
I think it's effective to trace like this.
var hilightColor = $('input::selection').css('background-color');
Is this realizable?