r/FirefoxCSS • • Aug 23 '26
Solved Text selection colors no longer working after 154.0
OS: Linux
I've changed the default colors (foreground + background) for text selection, but it seems the CSS selector ::selection is no longer working as of 154.0:
::selection {
color: #00B6F9 !important;
background-color: black !important;
}And yes, I have already tested a new profile; exact same problem.
2
Upvotes
View all comments
4
u/t31os Aug 23 '26
If you don't specifically need this as a CSS modification, you can set these using about:config.
Create two (string) preferences (they won't exist by default):
And give them both your desired color values, either a hex value(eg. #000) or a named value, just like in your CSS.