MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / normalizeStyleValue

Function normalizeStyleValue

packages/extension/utils/css.ts:1066–1072  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

1064}
1065
1066export function normalizeStyleValue(raw: string): string {
1067 if (!raw) return ''
1068 let val = preprocessCssValue(raw)
1069 val = stripFallback(val)
1070 val = val.replace(ZERO_UNITS_RE, '$10')
1071 return val.trim()
1072}
1073
1074const TEXT_STYLE_DEFAULTS = new Map<string, string>([
1075 ['text-decoration-skip-ink', 'auto'],

Callers 13

cssToTailwindFunction · 0.90
css.test.tsFile · 0.90
getBorderWidthFunction · 0.90
hasOverflowClippingFunction · 0.90
isZeroValueFunction · 0.90
negateLengthLiteralFunction · 0.90
getBorderWidthFunction · 0.85
isZeroBorderWidthFunction · 0.85
negateLengthLiteralFunction · 0.85
hasOverflowClippingFunction · 0.85
expandShorthandsFunction · 0.85

Calls 2

preprocessCssValueFunction · 0.85
stripFallbackFunction · 0.85

Tested by

no test coverage detected