(sheet: CSSStyleSheet, node: Document | ShadowRoot)
| 1 | const sheetsScopes = new WeakMap<CSSStyleSheet, Document | ShadowRoot>(); |
| 2 | |
| 3 | export function defineSheetScope(sheet: CSSStyleSheet, node: Document | ShadowRoot): void { |
| 4 | sheetsScopes.set(sheet, node); |
| 5 | } |
| 6 | |
| 7 | export function getSheetScope(sheet: CSSStyleSheet): Document | ShadowRoot | null { |
| 8 | if (!sheet.ownerNode) { |
no test coverage detected