Open
Bug 1820588
Opened 1 year ago
Investigate adding MozHTMLElement.insertCssIfNeeded
Categories
(Toolkit :: UI Widgets, task)
Toolkit
UI Widgets
Tracking
()
NEW
People
(Reporter: hjones, Unassigned)
References
(Blocks 1 open bug)
Details
In some cases we create custom elements that handle adding their own styles to the document/ShadowRoot. When we do this, logic needs to be added to ensure that each instance of a custom element doesn't re-append the same stylesheet. If we're finding this is a commonly repeated pattern we may want to create a method to support this in a universal way - along the same lines as MozXULElement.insertFTLIfNeeded
.
You need to log in
before you can comment on or make changes to this bug.
Description
•