Boris Zbarsky wrote:

There's one more thing to think about, I guess, and that's whether it would be easier to create/edit one sheet per page or a single sheet. I'm not sure where the sheets are coming from, so....

Creating is probably the same either way, but it'll be easier to edit one sheet per page, I reckon, since we'll be editing a much smaller and simpler document.


So how complicated do you expect the answers to the "what sheets should I apply to this site" question be? If we're talking just a hostname match, we could just extend nsIStylesheetService to allow registering sheets for a particular hostname.

For the application I'm considering, the answers will be simple. For a given page, the answer will comprise one sheet for the site on which the page is located and one sheet for the page itself.

Of course, we'll need to define what we mean by "site" and "page" and, if we choose the single sheet approach, make sure dbaron's per-site selector syntax supports those definitions (which it seems like it does, based on some early working commonsense definitions of those terms).

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

Reply via email to