Skip to content

Commit 58872ca

Browse files
committed
Document function
1 parent 1ed8656 commit 58872ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
/**
2+
* A function that iterates through the computed style properties of a HTML
3+
* element and redefines them as inline styles.
4+
*/
15
export default function computedStyleToInlineStyle(
2-
element: HTMLElement,
6+
element: HTMLElement | SVGElement,
37
options?: {
48
recursive?: boolean;
59
properties?: string[];

0 commit comments

Comments
 (0)