(style: Record<string, string>)
| 1110 | ) |
| 1111 | |
| 1112 | export function stripDefaultTextStyles(style: Record<string, string>): Record<string, string> { |
| 1113 | const cleaned: Record<string, string> = {} |
| 1114 | Object.entries(style).forEach(([key, value]) => { |
| 1115 | const defaultValue = TEXT_STYLE_DEFAULTS.get(key) |
| 1116 | if (defaultValue && canonicalizeValue(key, defaultValue) === canonicalizeValue(key, value)) { |
| 1117 | return |
| 1118 | } |
| 1119 | cleaned[key] = value |
| 1120 | }) |
| 1121 | return cleaned |
| 1122 | } |
| 1123 | |
| 1124 | export function pruneInheritedTextStyles( |
| 1125 | style: Record<string, string>, |
no test coverage detected