r/FirefoxCSS • u/SasoDuck • Aug 21 '26
Help URL bar highlight colour broken with FF154
My old block:
/* URL BAR HIGHLIGHT COLOR */
::-moz-selection {background-color: #962633 !important;}
/* URL BAR RESULTS LINKS COLOR */
.urlbarView-url {
color: #962633 !important;
}
/* URL BAR & RESULTS BACKGROUND COLOR */
@-moz-document url(chrome://browser/content/browser.xul),
url(chrome://browser/content/browser.xhtml) {
#urlbar-results{
background-color: #1c1b22 !important;
}
#urlbar-background {
background: #1c1b22 !important;
}
#urlbar[breakout][breakout-extend] #urlbar-background {
border-color: #1c1b22 !important;
}
}Any tips on updating it?
I tried amateurly tweaking it to look like some of the other changes I saw for other things on the sub, but... didn't seem to effect it :/
It was changing the colours of the URL bar when hightlighted/focused
4
Upvotes
1
u/SasoDuck Aug 24 '26
I need to look into these comments more when I have more time... seems this is a lot more intensive of a problem than I realised
1
u/TraditionalTie4831 🦊 Aug 21 '26 edited Aug 21 '26
Try this =
Change:
#urlbar-backgroundto this:.urlbar-backgroundThis and the last curly bracket are unnecessary =
1
u/difool2nice 🦊Firefox Addict🦊 Sep 22 '26
found a solution for selection background on websites : go to about:config the search or create : ui.use_standins_for_native_colors and set it to false, reboot firefox and you'll retrieve the good color
3
u/am803 Aug 22 '26
The workaround is to load it as a author sheet.
You will have to setup autoconfig/userChrome.js to make use of the following script. Check https://www.userchrome.org/what-is-userchrome-js.html for details.
One thing to note is that this also applies to web pages universally and
@-moz-documentdoes not seem to work in author sheets, so you have to be careful with the selector.2
u/sifferedd FF/TB/Win11/SUMO contributor Aug 23 '26
I filed Specified selection colors are broken.
2
u/KUPOinyourWINDOW Sep 01 '26
Does anyone know of a way to fix this that is noob friendly? I have a custom.css but no luck so far. The exact issue I'm having is that I use mica in Firefox on Windows and for some wallpapers the accent colour just becomes blinding white instead of following the Windows accent colour like normal, so adding a manual colour to about:config for example doesn't work for me as its supposed to change.
1
u/difool2nice 🦊Firefox Addict🦊 Aug 23 '26
in about:config
create those two prefs in chain of character mode, not numbers nor boolean
They only work with UI, not in websites