(style: CSSStyleDeclaration)
| 75 | let font: FontStyle | null = null |
| 76 | |
| 77 | const compareStyle = (style: CSSStyleDeclaration) => { |
| 78 | if (!font) { |
| 79 | font = { |
| 80 | size: style.fontSize, |
| 81 | weight: style.fontWeight, |
| 82 | color: style.color, |
| 83 | } |
| 84 | } else if ( |
| 85 | font.size !== style.fontSize || |
| 86 | font.weight !== style.fontWeight || |
| 87 | font.color !== style.color |
| 88 | ) { |
| 89 | font = null |
| 90 | return false |
| 91 | } |
| 92 | return true |
| 93 | } |
| 94 | |
| 95 | const traverse = (element: Element) => { |
| 96 | for (const child of element.children) { |
no outgoing calls
no test coverage detected
searching dependent graphs…