Open
Bug 456378
Opened 17 years ago
Updated 3 years ago
provide an xpcom api to add user(agent) stylesheets to documents
Categories
(Core :: DOM: Navigation, enhancement)
Core
DOM: Navigation
Tracking
()
UNCONFIRMED
People
(Reporter: timeless, Unassigned)
Details
we're trying to apply a stylesheet to a window
setup:
a given url may be loaded into multiple windows, and we may only wish to apply a style sheet to a single window.
(excludes @moz-document)
requirement:
the document's dom should not be mutated in order to apply the style sheet (excludes <link>/<style>)
conceptually this is something like a public AddCatalogStyleSheet/AddStyleSheet, but it needs to be public.
we're an embedder and do not want to use gecko internals. the method needs to be on a publicly reachable object. i.e. embedders use nsIWebBrowser to reach nsIDOMDocument and the API should be reachable from there so that both a gecko embedder and an extension could use this feature.
I'm not sure if this belongs on something reachable from the document or on
http://mxr.mozilla.org/mozilla-central/source/layout/base/nsIStyleSheetService.idl
Comment 2•17 years ago
|
||
>/base/nsIStyleSheetService.idl
This API will apply style for all documents. we need only one window
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•