Skip to content

Commit 65a6415

Browse files
committed
Oversight in 40f32dc
1 parent bb25f0e commit 65a6415

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/parse/parser.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -944,23 +944,23 @@ function parseStyleSheet(input, context, allowImport = false) {
944944
}
945945

946946
/**
947-
* @param {Stream} input
947+
* @param {object} value
948948
* @param {object} context
949949
* @returns {SyntaxError|object|null}
950950
*/
951-
function parseCSSArbitrarySubstitution(input, context) {
952-
if (input.types[0] !== '<function>') {
951+
function parseCSSArbitrarySubstitution(value, context) {
952+
if (value.types[0] !== '<function>') {
953953
return null
954954
}
955955
const { definition: { cascading, elemental } } = getRule(context)
956956
for (const { cascade, element, name, type = `<${name}()>` } of substitutions.arbitrary) {
957957
if (!elemental && (element || (cascade && !cascading))) {
958958
continue
959959
}
960-
if (isFailure(parseCSSGrammar(input.name, name, context))) {
960+
if (isFailure(parseCSSGrammar(value.name, name, context))) {
961961
continue
962962
}
963-
return parseCSSGrammar([input], type, context) ?? error({ message: 'Invalid substitution' })
963+
return parseCSSGrammar([value], type, context) ?? error({ message: 'Invalid substitution' })
964964
}
965965
return null
966966
}

0 commit comments

Comments
 (0)