autoprefixer 10.4.15 → 10.4.16
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/lib/processor.js +10 -9
- package/package.json +3 -3
package/lib/processor.js
CHANGED
|
@@ -458,12 +458,12 @@ class Processor {
|
|
|
458
458
|
* Check for grid/flexbox options.
|
|
459
459
|
*/
|
|
460
460
|
disabledDecl(node, result) {
|
|
461
|
-
if (this.gridStatus(node, result) === false
|
|
461
|
+
if (node.type === 'decl' && this.gridStatus(node, result) === false) {
|
|
462
462
|
if (node.prop.includes('grid') || node.prop === 'justify-items') {
|
|
463
463
|
return true
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
if (this.prefixes.options.flexbox === false
|
|
466
|
+
if (node.type === 'decl' && this.prefixes.options.flexbox === false) {
|
|
467
467
|
let other = ['order', 'justify-content', 'align-items', 'align-content']
|
|
468
468
|
if (node.prop.includes('flex') || other.includes(node.prop)) {
|
|
469
469
|
return true
|
|
@@ -641,15 +641,16 @@ class Processor {
|
|
|
641
641
|
})
|
|
642
642
|
|
|
643
643
|
// Selectors
|
|
644
|
-
|
|
645
|
-
|
|
644
|
+
css.walkRules((rule, i) => {
|
|
645
|
+
if (this.disabled(rule, result)) return
|
|
646
|
+
|
|
647
|
+
for (let checker of this.prefixes.remove.selectors) {
|
|
646
648
|
if (checker.check(rule)) {
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
}
|
|
649
|
+
rule.parent.removeChild(i)
|
|
650
|
+
return
|
|
650
651
|
}
|
|
651
|
-
}
|
|
652
|
-
}
|
|
652
|
+
}
|
|
653
|
+
})
|
|
653
654
|
|
|
654
655
|
return css.walkDecls((decl, i) => {
|
|
655
656
|
if (this.disabled(decl, result)) return
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autoprefixer",
|
|
3
|
-
"version": "10.4.
|
|
3
|
+
"version": "10.4.16",
|
|
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"
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"browserslist": "^4.21.10",
|
|
43
|
-
"caniuse-lite": "^1.0.
|
|
44
|
-
"fraction.js": "^4.
|
|
43
|
+
"caniuse-lite": "^1.0.30001538",
|
|
44
|
+
"fraction.js": "^4.3.6",
|
|
45
45
|
"normalize-range": "^0.1.2",
|
|
46
46
|
"picocolors": "^1.0.0",
|
|
47
47
|
"postcss-value-parser": "^4.2.0"
|