autoprefixer 10.4.18 → 10.4.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/prefixes.js +12 -4
- package/lib/processor.js +0 -16
- package/package.json +4 -4
package/data/prefixes.js
CHANGED
|
@@ -597,13 +597,21 @@ f(prefixIntrinsic, { match: /x|\s#4/ }, browsers =>
|
|
|
597
597
|
})
|
|
598
598
|
)
|
|
599
599
|
|
|
600
|
-
f(prefixIntrinsic, { match: /x|\s#5/ }, browsers =>
|
|
601
|
-
|
|
602
|
-
|
|
600
|
+
f(prefixIntrinsic, { match: /x|\s#5/ }, browsers => {
|
|
601
|
+
let ffFix = browsers.filter(i => {
|
|
602
|
+
let [name, version] = i.split(' ')
|
|
603
|
+
if (name === 'firefox' || name === 'and_ff') {
|
|
604
|
+
return parseInt(version) < 94
|
|
605
|
+
} else {
|
|
606
|
+
return true
|
|
607
|
+
}
|
|
608
|
+
})
|
|
609
|
+
return prefix(['fit-content'], {
|
|
610
|
+
browsers: ffFix,
|
|
603
611
|
feature: 'intrinsic-width',
|
|
604
612
|
props: sizeProps
|
|
605
613
|
})
|
|
606
|
-
)
|
|
614
|
+
})
|
|
607
615
|
|
|
608
616
|
// Stretch value
|
|
609
617
|
|
package/lib/processor.js
CHANGED
|
@@ -94,11 +94,6 @@ class Processor {
|
|
|
94
94
|
return displayGrid || gridTemplate || gridGap
|
|
95
95
|
})
|
|
96
96
|
}
|
|
97
|
-
function insideFlex(decl) {
|
|
98
|
-
return decl.parent.some(node => {
|
|
99
|
-
return node.prop === 'display' && /(inline-)?flex/.test(node.value)
|
|
100
|
-
})
|
|
101
|
-
}
|
|
102
97
|
|
|
103
98
|
let gridPrefixes =
|
|
104
99
|
this.gridStatus(css, result) &&
|
|
@@ -147,17 +142,6 @@ class Processor {
|
|
|
147
142
|
{ node: decl }
|
|
148
143
|
)
|
|
149
144
|
}
|
|
150
|
-
} else if (
|
|
151
|
-
/^(align|justify|place)-(items|content)$/.test(prop) &&
|
|
152
|
-
insideFlex(decl)
|
|
153
|
-
) {
|
|
154
|
-
if (value === 'start' || value === 'end') {
|
|
155
|
-
result.warn(
|
|
156
|
-
`${value} value has mixed support, consider using ` +
|
|
157
|
-
`flex-${value} instead`,
|
|
158
|
-
{ node: decl }
|
|
159
|
-
)
|
|
160
|
-
}
|
|
161
145
|
} else if (prop === 'text-decoration-skip' && value === 'ink') {
|
|
162
146
|
result.warn(
|
|
163
147
|
'Replace text-decoration-skip: ink to ' +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autoprefixer",
|
|
3
|
-
"version": "10.4.
|
|
3
|
+
"version": "10.4.20",
|
|
4
4
|
"description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^10 || ^12 || >=14"
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"postcss": "^8.1.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"browserslist": "^4.23.
|
|
43
|
-
"caniuse-lite": "^1.0.
|
|
42
|
+
"browserslist": "^4.23.3",
|
|
43
|
+
"caniuse-lite": "^1.0.30001646",
|
|
44
44
|
"fraction.js": "^4.3.7",
|
|
45
45
|
"normalize-range": "^0.1.2",
|
|
46
|
-
"picocolors": "^1.0.
|
|
46
|
+
"picocolors": "^1.0.1",
|
|
47
47
|
"postcss-value-parser": "^4.2.0"
|
|
48
48
|
}
|
|
49
49
|
}
|