@@ -9,6 +9,9 @@ var SyntaxValidationResult;
99 SyntaxValidationResult[SyntaxValidationResult["Drop"] = 1] = "Drop";
1010 SyntaxValidationResult[SyntaxValidationResult["Lenient"] = 2] = "Lenient"; /* preserve unknown at-rules, declarations and pseudo-classes */
1111})(SyntaxValidationResult || (SyntaxValidationResult = {}));
12+ /**
13+ * validation level enum
14+ */
1215exports.ValidationLevel = void 0;
1316(function (ValidationLevel) {
1417 ValidationLevel[ValidationLevel["None"] = 0] = "None";
@@ -13349,7 +13352,7 @@ function validateKeyframeBlockList(tokens, atRule, options) {
1334913352
1335013353const matchUrl = /^(https?:)?\/\//;
1335113354/**
13352- * return dirname
13355+ * return the directory name of a path
1335313356 * @param path
1335413357 */
1335513358function dirname(path) {
@@ -17244,7 +17247,7 @@ function parseSelector(tokens) {
1724417247// return doParse(`.x{${src}`, options).then((result: ParseResult) => <AstDeclaration[]>(<AstRule>result.ast.chi[0]).chi.filter(t => t.typ == EnumToken.DeclarationNodeType));
1724517248// }
1724617249/**
17247- * parse string
17250+ * parse css string
1724817251 * @param src
1724917252 * @param options
1725017253 */
@@ -17426,7 +17429,7 @@ function getTokenType(val, hint) {
1742617429 };
1742717430}
1742817431/**
17429- * parse token list
17432+ * parse token array into a tree structure
1743017433 * @param tokens
1743117434 * @param options
1743217435 */
@@ -17828,7 +17831,7 @@ function* walk(node, filter) {
1782817831 }
1782917832}
1783017833/**
17831- * walk ast values
17834+ * walk ast node value tokens
1783217835 * @param values
1783317836 * @param root
1783417837 * @param filter
@@ -18308,7 +18311,7 @@ class ComputePrefixFeature {
1830818311 }
1830918312 let hasPrefix = false;
1831018313 for (const { value } of walkValues(node.val)) {
18311- if ((value.typ == exports.EnumToken.IdenTokenType || funcLike.includes(value.typ)) && value.val.match(/^-([^-]+)-(.+)$/) != null) {
18314+ if ((value.typ == exports.EnumToken.IdenTokenType || (value.typ != exports.EnumToken.ParensTokenType && funcLike.includes(value.typ) )) && value.val.match(/^-([^-]+)-(.+)$/) != null) {
1831218315 if (value.val.endsWith('-gradient')) {
1831318316 // not supported yet
1831418317 break;
0 commit comments