Skip to content

Commit b464b28

Browse files
committed
Minor things
1 parent 89a7f6a commit b464b28

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

lib/parse/postprocess.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ function getMediaFeatureContextName(context) {
968968
*/
969969
function postParseMediaFeatureName(name, node) {
970970

971-
const { context, parent } = node
971+
const { context } = node
972972
const lowercase = name.value.toLowerCase()
973973
const unprefixed = lowercase.replace(/(min|max)-/, '')
974974

lib/parse/preprocess.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ module.exports = {
310310
'+': preParseCalcOperator,
311311
',': preParseComma,
312312
'-': preParseCalcOperator,
313-
'<color-interpolate()>': preParseTypeInterpolate,
314313
'<calc-value>': preParseCalcValue,
314+
'<color-interpolate()>': preParseTypeInterpolate,
315315
'<combinator>': preParseCombinator,
316316
'<complex-selector-unit>': preParseComplexSelectorUnit,
317317
'<compound-selector>': preParseCompoundSelector,

lib/parse/types.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,11 @@ function getCalculationFunctionType({ name, value }, resolutionType) {
263263
}
264264
return null
265265
}
266-
case 'calc-interpolate':
266+
case 'calc-interpolate': {
267267
const [,,,, progress,, stops] = value
268268
const calculations = [progress, ...stops.map(item => item.at(-1))]
269269
return combineCalculationTypes(addTypes, calculations, resolutionType)
270+
}
270271
case 'calc-mix':
271272
return combineCalculationTypes(addTypes, value.map(item => item[0]), resolutionType)
272273
case 'clamp':

scripts/extract.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ const excluded = {
580580
],
581581
'pointer-animations': [
582582
// https://github.com/w3c/csswg-drafts/issues/12285
583-
'<axis>'
583+
'<axis>',
584584
],
585585
},
586586
}

0 commit comments

Comments
 (0)