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
Post a Comment