(style: Record<string, string>)
| 69 | } |
| 70 | |
| 71 | function preprocessRawStyle(style: Record<string, string>): Record<string, string> { |
| 72 | const out: Record<string, string> = {} |
| 73 | for (const [key, value] of Object.entries(style)) { |
| 74 | if (value == null) continue |
| 75 | let next = preprocessCssValue(String(value)) |
| 76 | next = stripFallback(next) |
| 77 | out[key] = next |
| 78 | } |
| 79 | return out |
| 80 | } |
| 81 | |
| 82 | function collectTextSegments(node: TextNode): StyledTextSegment[] | null { |
| 83 | try { |
no test coverage detected