(raw: string)
| 174 | * Adding support for a new unit: add it to CSS_UNITS above. |
| 175 | */ |
| 176 | export function isParseableDimension(raw: string): boolean { |
| 177 | const parts = parseDimensionParts(raw); |
| 178 | return parts !== null && CSS_UNITS.has(parts.unit); |
| 179 | } |
| 180 | |
| 181 | /** |
| 182 | * @deprecated Use isStandardDimension for spec compliance or isParseableDimension for generous parsing. |
no test coverage detected
searching dependent graphs…