MCPcopy
hub / github.com/google-labs-code/design.md / isParseableDimension

Function isParseableDimension

packages/cli/src/linter/model/spec.ts:176–179  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

174 * Adding support for a new unit: add it to CSS_UNITS above.
175 */
176export 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.

Callers 3

spec.test.tsFile · 0.85
executeMethod · 0.85
parseTypographyFunction · 0.85

Calls 1

parseDimensionPartsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…