Search code examples
cssinputmozillaelement

::moz-selection does not apply to input elements


Is there anyway I can get ::moz-selection applied to input elements, even if I have to edit some file in userChrome.css, userContent.css or some similar file?

thanks


Solution

  • The value of an input is not a text-node in the DOM, therefore CSS-selectors will not be able to target it.