diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:10:59 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:41:44 +0800 |
| commit | fc87c009806dcc98867f6b58efe29b042aa01dee (patch) | |
| tree | 8f59b3f4a5b66e9dfef2d40c8d318e258a521228 /node_modules/css-tree/lib/syntax/function | |
| parent | 3336b2356ee6152d9c6ae59bd9b87ccbc0958407 (diff) | |
node: updatemain
Diffstat (limited to 'node_modules/css-tree/lib/syntax/function')
| -rw-r--r-- | node_modules/css-tree/lib/syntax/function/expression.js | 7 | ||||
| -rw-r--r-- | node_modules/css-tree/lib/syntax/function/var.js | 39 |
2 files changed, 0 insertions, 46 deletions
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( <any-value> ) -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( <ident> , <value>? ) -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; -}; |
