MCPcopy Create free account
hub / github.com/webstudio-is/webstudio / normalizeCustomPropertyValue

Function normalizeCustomPropertyValue

packages/css-data/src/parse-css.ts:653–662  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

651};
652
653const normalizeCustomPropertyValue = (value: string) => {
654 if (value === "") {
655 return value;
656 }
657 try {
658 return csstree.generate(csstree.parse(value, { context: "value" }));
659 } catch {
660 return value;
661 }
662};
663
664type Selector = {
665 name: string;

Callers 2

enterFunction · 0.85
leaveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected