(root: ShadowRoot)
| 296 | } |
| 297 | |
| 298 | function createShadowStaticStyleOverrides(root: ShadowRoot) { |
| 299 | // The shadow DOM may not be populated yet and the custom element implementation |
| 300 | // may assume that unpopulated shadow root is empty and inadvertently remove |
| 301 | // Dark Reader's overrides |
| 302 | const delayed = root.firstChild === null; |
| 303 | createShadowStaticStyleOverridesInner(root); |
| 304 | if (delayed) { |
| 305 | delayedCreateShadowStaticStyleOverrides(root); |
| 306 | } |
| 307 | } |
| 308 | |
| 309 | function replaceCSSTemplates($cssText: string) { |
| 310 | return $cssText.replace(/\${(.+?)}/g, (_, $color) => { |
no test coverage detected
searching dependent graphs…