diff --git a/lib/css/CssParser.js b/lib/css/CssParser.js index 2bcd24ad490..766ae6bc7b3 100644 --- a/lib/css/CssParser.js +++ b/lib/css/CssParser.js @@ -139,18 +139,6 @@ class CssParser extends Parser { let lastIdentifier = undefined; const modeStack = []; let awaitRightParenthesis = false; - const pseudoFunctionNames = [ - ":matches", - ":not", - ":is", - ":where", - ":has", - ":current", - ":past", - ":future", - "-moz-any", - "-webkit-any" - ]; const isTopLevelLocal = () => modeData === "local" || (this.defaultMode === "local" && modeData === undefined); @@ -576,10 +564,8 @@ class CssParser extends Parser { modeData = "local"; const dep = new ConstDependency("", [start, end]); module.addPresentationalDependency(dep); - } else if (pseudoFunctionNames.includes(name)) { - awaitRightParenthesis = true; - modeStack.push(false); } else { + awaitRightParenthesis = true; modeStack.push(false); } break;