Extensions that apply user CSS don't do it the same way as userContent.css does (FOUC)
Categories
(WebExtensions :: Developer Outreach, defect)
Tracking
(Not tracked)
People
(Reporter: eter88bugs, Unassigned, NeedInfo)
References
Details
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Comment 9•7 years ago
|
||
Comment 10•7 years ago
|
||
Reporter | ||
Comment 11•7 years ago
|
||
Reporter | ||
Comment 12•7 years ago
|
||
Updated•7 years ago
|
Assignee | ||
Updated•6 years ago
|
Comment 14•6 years ago
|
||
(In reply to Éter from comment #12)
I'm not sure what to do next, as I don't want to use direct registration of
CSS due to its lack of stylesheet ordering, which is needed for our
LivePreview of styles in the editor and dynamic toggling of styles. So far
the only solution is to re-register all styles that have a higher id on each
change of the style code. Yuck."
Does ordering here refer to the equivalent of cssOrigin? Or to ordering individual entries of a given type?
In either case, adding something to the contentScripts.register() api to give extensions finer control over where individual sheets fall in the cascade order sounds reasonable in principle (I don't know off the top of my head how practical the implementation would be)
Comment 15•6 years ago
|
||
(This bug will be closed at next triage (1 week from today) if there is no response.)
Comment 16•6 years ago
|
||
It's not clear what response you're looking for. Comment 14 asks reporter some questions, but reporter is not in a position to provide those answers afaict; the developers of the relevant extensions are. Have we tried contacting them?
Comment 17•6 years ago
|
||
(In reply to Boris Zbarsky [:bzbarsky, bz on IRC] from comment #16)
It's not clear what response you're looking for. Comment 14 asks reporter some questions, but reporter is not in a position to provide those answers afaict; the developers of the relevant extensions are. Have we tried contacting them?
Whoops, I overlooked that most of comment 14 was quoted, thank you for pointing that out.
Redirecting the needinfo. Jeremy, would adding cssOrigin to contentScripts.register() meet your needs?
Updated•6 years ago
|
Comment 18•6 years ago
|
||
Closing. cssOrigin referenced in c17 will be filed in another bug.
Updated•6 years ago
|
Updated•5 years ago
|
Description
•