I am using a CSS3 ::section selector like this
::selection{ color:red; background-color:pink; } ::-moz-selection { color:red; background-color:pink; }
So, when an element is selected, it should change its color to red, and the background to pink.
It works as expected for everything except the Anchor <a> .
When anchor text is selected, it applies the style to the link text, but not to the line below the anchor text.
JSFiddle: http://jsfiddle.net/GcBT2/1/
So how can we apply style to underlining as well?
PS: Browsers tested: chrome 31 and firefox 25.0.1
Shiva source share