Firefox userChrome.css window focus selector -


is there css selector can use in userchrome.css change text color of firefox when whole browser window loses focus?

i've tried:

window:focus element { color: #aaa; }    /* nothing */ window:active element { color: #aaa; }   /* when something's being clicked */ window:hover element { color: #aaa; }    /* when cursor on window */ window[focus] element { color: #aaa; }   /* wishful thinking--doesn't work */ window[active="true"] element { color: #aaa; }   /* documented work... */ 

or stuck using javascript? if so, there userchrome.js can put script in?

solved!

per https://developer.mozilla.org/en-us/docs/web/css/:-moz-window-inactive, functionality has been changed.

now can use:

element:-moz-window-inactive { color: #aaa; } 

and:

element:not(-moz-window-inactive) { color: #aaa; } 

to change css styles depending on if firefox window focused.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -