Mon, 25 Jul 2011 10:03:10 -0400, /Boris Zbarsky/:
On 7/24/11 7:10 PM, Stanimir Stamenkov wrote:
Or does this appear detail which is better handled by the way UAs
provide style customization capabilities to users, e.g. if the Stylish
extension [2] provided an option whether specific styles should be added
as user style sheet, or just added to the page/author style sheets.
In terms of implementation, it's a lot simpler to have external
metadata for each sheet saying where it should go in the cascade
than it is to have internal metadata or to have things going into
different levels of the cascade on a per-rule basis.
So I've written the Stylish extension author asking him whether it
is possible to add an "User/Author" style sheet toggle and he
replied the API that Stylish uses only allows for User and UA style
types. Quick search reveals this should be:
https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIStyleSheetService
Does it make sense to extend it with additional AUTHOR_SHEET type
which would register a sheet added to the end of the list of in
document specified author sheets?
--
Stanimir
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout