How can I customize the highlight in the urlbar in the Australis nightly builds? Selected text is unreadable when the urlbar has a dark barkground. I'm on OS X 10.8.5
I just found out that the highlight and highlight text color is due to the system preferences. Choosing another color (e.g. #333) for selections and highlights in the OS X system preferences makes the text readable. Topic can be closed.
There should be a CSS hack to do it as well. I didn't have any luck poking around at the URL/address bar in the DOM Inspector, but I do know that your sample code above will just change the background of the address bar and the color of the text in the address bar when you put the cursor in it, but not the highlight color. But, if you are satisfied with your global change...
Give a man a fish, and he eats for a day. Teach a man to fish, and he eats for a lifetime. I like poetry, long walks on the beach and poking dead things with a stick. Please do not PM me for personal support. Keep posts here in the Forums instead and we all learn.
but it doesn't work. I get "Unknown pseudo-class or pseudo-element 'selection'. Ruleset ignored due to bad selector" in the Stylish Editor. (Same for ::moz-selection.)
And applying the selector globally doesn't throw an error, but doesn't seem to work either
Thanks! Unfortunately it still doesn't work on my side. It seems the OS X system settings are overriding the styles. Which is weird, because ::-moz-selection and and ::selection are working fine when applied to websites.
Scratch that, sorry. Now it's working! I had to create a new stylish snippet instead of adding the code to the one that makes the urlbar darker. Thank you so much for your help!
mozillaZine is an independent Mozilla community and advocacy site. We're not affiliated or endorsed by the Mozilla Corporation but we love them just the same.