[Answered] Help with 'selected text' background style
Hi, I'm having a problem with 'selected text' style, using userContent.css file with recent Firefox update the next code stop working, seems like Firefox change that behavior:
::selection {
color: red !important;
box-shadow: none !important;
text-shadow: none !important;
background: blue !important;
}
That code doesn't work in userChrome.css either.
Still is possible to change that style? I appreciate any help, thanks.
2 replies
So, the bug that caused this is bug 2058134. The change that was made there is rather inconvenient for user styling, because now the text painting code simply looks if author styles (e.g the web page author) change the selection color and only then use the css specified colors. I'm pretty sure that means that
::selectiondoes absolutely nothing when used in user{Chrome/Content}.css files because they are user, not author styles.If you want this changed then you should create a new bug and mark it as being regressed by the above bug.
Sad to hear that, each day less user power for Firefox, Thanks for the answer.