From 95205c70e52b0f105647ae2cdf4fc5b2bf016a94 Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 20 Aug 2021 13:03:23 +0300 Subject: [PATCH] parserlib: check if prop with vars inside is known --- js/csslint/parserlib.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/csslint/parserlib.js b/js/csslint/parserlib.js index ec17b3d1..c244c2d3 100644 --- a/js/csslint/parserlib.js +++ b/js/csslint/parserlib.js @@ -2408,9 +2408,6 @@ self.parserlib = (() => { } return; } - if (hasVarParts(value)) { - return; - } const prop = lower(name); let known = validationCache.get(prop); if (known && known.has(value.text)) { @@ -2423,6 +2420,9 @@ self.parserlib = (() => { if (!spec) { throw new ValidationError(`Unknown property '${name}'.`, value); } + if (hasVarParts(value)) { + return; + } // Property-specific validation. const expr = new PropertyValueIterator(value); const m = Matcher.parse(spec);