(style: CSSStyleDeclaration, options: Options)
| 9 | } |
| 10 | |
| 11 | function formatCSSProperties(style: CSSStyleDeclaration, options: Options) { |
| 12 | return getStyleProperties(options) |
| 13 | .map((name) => { |
| 14 | const value = style.getPropertyValue(name) |
| 15 | const priority = style.getPropertyPriority(name) |
| 16 | |
| 17 | return `${name}: ${value}${priority ? ' !important' : ''};` |
| 18 | }) |
| 19 | .join(' ') |
| 20 | } |
| 21 | |
| 22 | function getPseudoElementStyle( |
| 23 | className: string, |
no test coverage detected
searching dependent graphs…