I want to make it possible for Firefox 3 to apply some site- and page-specific user settings to pages during layout. Some settings will get applied by rules in a user stylesheet (f.e. text and background colors), while others will get applied via other mechanisms (f.e. text size, which prescontext apparently handles).

I'm trying to figure out how best to integrate the application of these various settings into layout.

I chatted with dbaron about it, and he suggested this might best be accomplished with a new settings object that gets queried by the various other objects for relevant settings at appropriate stages in the loading process.

For example, stylecontext (?) might query the object when it's ready to style the page, while prescontext might query it before setting the page's text size.

Does that seem like the right approach, and are there any potential pitfalls to be aware of? Is there any reason not to implement such an object as a JavaScript component?

-myk
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to