<!DOCTYPE html>
<div style="border:5px solid; width:100px; font-size:16px; font-family:sans-serif;">
    <span style="background-color:rgba(63, 128, 33, 0.95); color:yellow;">Hello</span>
</div>
<br>Fix for ::selection pseudo element to work on input elements.
<br>The above selected text in the input box should have green background and yellow color.