A new set of "moz-" XML attributes are added to every XUL nsIDOMWindow:
moz-app="[application_guid]"
moz-version="[application_version]"
moz-current-theme="[theme_guid]"
moz-platform="win32/osx/linux"
moz-chrome-url="[registered_chrome_url_of_window]"
Now every theme can create selectors based on the above attributes in the window or page element thus:
- Code: Select all
window[moz-platform="osx"] #myelem{
padding-left: 10px;
/* More OSX specific styles */
}
or:
- Code: Select all
page[moz-current-theme="9f08cb5a-76b1-4bcf-aff9-90e1a5d60b1e"] { /* Noia Theme GUID */
padding-left: 10px;
/* More Noia theme specific styles */
}
Comments??
asp
