(sheet: HTMLStyleElement)
| 233 | let styleObserver = new MutationObserver(() => rebuild('full')) |
| 234 | |
| 235 | function observeSheet(sheet: HTMLStyleElement) { |
| 236 | styleObserver.observe(sheet, { |
| 237 | attributes: true, |
| 238 | attributeFilter: ['type'], |
| 239 | characterData: true, |
| 240 | subtree: true, |
| 241 | childList: true, |
| 242 | }) |
| 243 | } |
| 244 | |
| 245 | // Handle changes to the document that could affect the styles |
| 246 | // - Changes to any element's class attribute |
no outgoing calls
no test coverage detected