(cssText: string, scopeSelector: string, hostSelector: string)
| 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 { } |
no test coverage detected