From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- .../css-tree/lib/syntax/function/expression.js | 7 ---- node_modules/css-tree/lib/syntax/function/var.js | 39 ---------------------- 2 files changed, 46 deletions(-) delete mode 100644 node_modules/css-tree/lib/syntax/function/expression.js delete mode 100644 node_modules/css-tree/lib/syntax/function/var.js (limited to 'node_modules/css-tree/lib/syntax/function') diff --git a/node_modules/css-tree/lib/syntax/function/expression.js b/node_modules/css-tree/lib/syntax/function/expression.js deleted file mode 100644 index c311c255..00000000 --- a/node_modules/css-tree/lib/syntax/function/expression.js +++ /dev/null @@ -1,7 +0,0 @@ -// legacy IE function -// expression( ) -export default function() { - return this.createSingleNodeList( - this.Raw(this.tokenIndex, null, false) - ); -} diff --git a/node_modules/css-tree/lib/syntax/function/var.js b/node_modules/css-tree/lib/syntax/function/var.js deleted file mode 100644 index 8da7efe5..00000000 --- a/node_modules/css-tree/lib/syntax/function/var.js +++ /dev/null @@ -1,39 +0,0 @@ -import { Comma, WhiteSpace } from '../../tokenizer/index.js'; - -// var( , ? ) -export default function() { - const children = this.createList(); - - this.skipSC(); - - // NOTE: Don't check more than a first argument is an ident, rest checks are for lexer - children.push(this.Identifier()); - - this.skipSC(); - - if (this.tokenType === Comma) { - children.push(this.Operator()); - - const startIndex = this.tokenIndex; - const value = this.parseCustomProperty - ? this.Value(null) - : this.Raw(this.tokenIndex, this.consumeUntilExclamationMarkOrSemicolon, false); - - if (value.type === 'Value' && value.children.isEmpty) { - for (let offset = startIndex - this.tokenIndex; offset <= 0; offset++) { - if (this.lookupType(offset) === WhiteSpace) { - value.children.appendData({ - type: 'WhiteSpace', - loc: null, - value: ' ' - }); - break; - } - } - } - - children.push(value); - } - - return children; -}; -- cgit v1.2.3