MCPcopy Create free account
hub / github.com/breck7/scroll / _mountCss

Method _mountCss

external/.scrollLibs.js:24705–24712  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24703 }
24704 // todo: we might be able to squeeze virtual dom in here on the mountCss and mountHtml methods.
24705 _mountCss() {
24706 const css = this._css
24707 if (!css) return this
24708 // todo: only insert css once per class? have a set?
24709 this._cssStumpParticle = this._getPageHeadStump().insertCssChildParticle(`styleTag
24710 for ${this.constructor.name}
24711 bern${Particle.nest(css, 2)}`)
24712 }
24713 _getPageHeadStump() {
24714 return this.root.willowBrowser.getHeadStumpParticle()
24715 }

Callers 2

_mountMethod · 0.95

Calls 3

_getPageHeadStumpMethod · 0.95
nestMethod · 0.80

Tested by

no test coverage detected