Trying to get some documentation on this. Have seen it used in some websites where they declare text-shadow in their ::selection pseudo element. Does anybody know if IE supports shadows on selected text? I know Firefox does not. Which browsers support text-shadow in ::selection? Thanks.
Trying to get some documentation on this. Have seen it used in some websites
Share
Use this site for testing is http://www.w3schools.com/cssref/tryit.asp?filename=trycss3_text-shadow. Just change the code to
h1::selection {text-shadow:2px 2px #FF0000;}, then test on your choice of browsers by highlighting over the H1 text in the window after you click the “Click Me” button.IE9 does not support
text-shadowat all, so within a::selectionit definitely wouldn’t work. Chrome, however, does support text-shadow within a::selection.