MCPcopy Index your code
hub / github.com/angular/angular / _scopeCssText

Method _scopeCssText

packages/compiler/src/shadow_css.ts:415–425  ·  view source on GitHub ↗
(cssText: string, scopeSelector: string, hostSelector: string)

Source from the content-addressed store, hash-verified

413 * scopeName .foo { ... }
414 */
415 private _scopeCssText(cssText: string, scopeSelector: string, hostSelector: string): string {
416 // replace :host and :host-context with -shadowcsshost and -shadowcsshostcontext respectively
417 cssText = this._insertPolyfillHostInCssText(cssText);
418 cssText = this._convertColonHost(cssText);
419 cssText = this._convertColonHostContext(cssText);
420 if (scopeSelector) {
421 cssText = this._scopeKeyframesRelatedCss(cssText, scopeSelector);
422 cssText = this._scopeSelectors(cssText, scopeSelector, hostSelector);
423 }
424 return cssText.trim();
425 }
426
427 /*
428 * convert a rule like :host(.foo) > .bar { }

Callers 1

shimCssTextMethod · 0.95

Calls 5

_convertColonHostMethod · 0.95
_scopeSelectorsMethod · 0.95

Tested by

no test coverage detected