(el: Element)
| 203 | } |
| 204 | |
| 205 | export function getElementStyles(el: Element): Record<string, string> { |
| 206 | const attr = el.getAttribute("style") ?? ""; |
| 207 | return parseStyleAttr(attr); |
| 208 | } |
| 209 | |
| 210 | export function setElementStyles(el: Element, updates: Record<string, string | null>): void { |
| 211 | const current = getElementStyles(el); |
no test coverage detected