(key: string, value: CSSValue)
| 9 | }; |
| 10 | |
| 11 | const formatCSSValue = (key: string, value: CSSValue) => { |
| 12 | const autoPixelProperties = new Set([ |
| 13 | "flexGrow", |
| 14 | "flexShrink", |
| 15 | "fontWeight", |
| 16 | "lineHeight", |
| 17 | "opacity", |
| 18 | "zIndex", |
| 19 | "flex", |
| 20 | "order", |
| 21 | "gridColumn", |
| 22 | "gridRow", |
| 23 | ]); |
| 24 | |
| 25 | if (typeof value === "number") { |
| 26 | return autoPixelProperties.has(key) ? value.toString() : `${value}`; |
| 27 | } |
| 28 | return value; |
| 29 | }; |
| 30 | |
| 31 | const stringifyProperties = ( |
| 32 | properties: CSSProperties, |
no test coverage detected