autoprefixer
Advanced tools
Comparing version 6.7.1 to 6.7.2
@@ -0,1 +1,4 @@ | ||
## 6.7.2 | ||
* Do not prefix grid/flexbox in `@supports` on `grid: false`/`flexbox: false`. | ||
## 6.7.1 | ||
@@ -2,0 +5,0 @@ * Update Browserslist with `last n version` fix. |
@@ -71,6 +71,8 @@ (function() { | ||
Supports.prototype.prefixed = function(str) { | ||
var decl, j, k, len, len1, prefixer, prop, ref1, ref2, rule, value; | ||
var decl, j, k, len, len1, prefixer, ref1, ref2, rule, value; | ||
rule = this.virtual(str); | ||
prop = rule.first.prop; | ||
prefixer = this.prefixer().add[prop]; | ||
if (this.disabled(rule.first)) { | ||
return rule.nodes; | ||
} | ||
prefixer = this.prefixer().add[rule.first.prop]; | ||
if (prefixer != null) { | ||
@@ -84,3 +86,3 @@ if (typeof prefixer.process === "function") { | ||
decl = ref1[j]; | ||
ref2 = this.prefixer().values('add', prop); | ||
ref2 = this.prefixer().values('add', rule.first.prop); | ||
for (k = 0, len1 = ref2.length; k < len1; k++) { | ||
@@ -227,2 +229,24 @@ value = ref2[k]; | ||
Supports.prototype.disabled = function(node) { | ||
var other; | ||
if (this.all.options.grid === false) { | ||
if (node.prop === 'display' && node.value.indexOf('grid') !== -1) { | ||
return true; | ||
} | ||
if (node.prop.indexOf('grid') !== -1 || node.prop === 'justify-items') { | ||
return true; | ||
} | ||
} | ||
if (this.all.options.flexbox === false) { | ||
if (node.prop === 'display' && node.value.indexOf('flex') !== -1) { | ||
return true; | ||
} | ||
other = ['order', 'justify-content', 'align-items', 'align-content']; | ||
if (node.prop.indexOf('flex') !== -1 || other.indexOf(node.prop) !== -1) { | ||
return true; | ||
} | ||
} | ||
return false; | ||
}; | ||
return Supports; | ||
@@ -229,0 +253,0 @@ |
{ | ||
"name": "autoprefixer", | ||
"version": "6.7.1", | ||
"version": "6.7.2", | ||
"description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website", | ||
@@ -17,3 +17,3 @@ "keywords": [ | ||
"browserslist": "^1.7.1", | ||
"caniuse-db": "^1.0.30000617", | ||
"caniuse-db": "^1.0.30000618", | ||
"normalize-range": "^0.1.2", | ||
@@ -20,0 +20,0 @@ "num2fraction": "^1.2.2", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
209066
4455
Updatedcaniuse-db@^1.0.30000618