(options: Options = {})
| 67 | |
| 68 | let styleProps: string[] | null = null |
| 69 | export function getStyleProperties(options: Options = {}): string[] { |
| 70 | if (styleProps) { |
| 71 | return styleProps |
| 72 | } |
| 73 | |
| 74 | if (options.includeStyleProperties) { |
| 75 | styleProps = options.includeStyleProperties |
| 76 | return styleProps |
| 77 | } |
| 78 | |
| 79 | styleProps = toArray(window.getComputedStyle(document.documentElement)) |
| 80 | |
| 81 | return styleProps |
| 82 | } |
| 83 | |
| 84 | function px(node: HTMLElement, styleProperty: string) { |
| 85 | const win = node.ownerDocument.defaultView || window |
no test coverage detected
searching dependent graphs…