Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> It's 1.7.8. > > OK. Then there is no really clean way to do it... You can try creating a > CSSLoader (nsICSSLoader.h) and using it to load sheets, then using > SetAgentStyleSheets() on the presshell, I guess.
That works for me, though it took me a while to work out that some of my rules were being overridden by the default "preferences". I'm now also calling EnablePrefStyleRules(false) to avoid this. Something I don't understand is that I apparently have to do this for each page. How do Seamonkey and Firefox set stylesheets to be applied to all pages, and can I do the same? -- Ben Hutchings friends: People who know you well, but like you anyway. _______________________________________________ mozilla-embedding mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-embedding
