(doc: Document)
| 166 | } |
| 167 | |
| 168 | function extractStyles(doc: Document): string | null { |
| 169 | const styleEl = doc.querySelector("style"); |
| 170 | return styleEl ? styleEl.textContent : null; |
| 171 | } |
| 172 | |
| 173 | // Root resolution delegates to the engine's findRoot so dimension extraction |
| 174 | // and mutations agree on which element is the composition root. |
no test coverage detected