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

Function cssTreeTryParse

packages/css-data/src/parse-css.ts:633–640  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

631};
632
633const cssTreeTryParse = (input: string) => {
634 try {
635 const ast = csstree.parse(input, { positions: true });
636 return ast;
637 } catch {
638 return;
639 }
640};
641
642const getRawDeclarationValue = (
643 css: string,

Callers 2

parseCssFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected