autoprefixer
Advanced tools
Comparing version 6.6.1 to 6.7.0
@@ -0,1 +1,6 @@ | ||
## 6.7 “Krungthep doot thep saang” | ||
* Add Electron support in browsers list (by Kilian Valkhof). | ||
* Add `flex-flow` partial support for Flexbox 2009 specification. | ||
* Fix browsers `0` version issue in some Can I Use data. | ||
## 6.6.1 | ||
@@ -2,0 +7,0 @@ * Add metadata to use Autoprefixer in JSS tests (by Chi Vinh Le). |
@@ -29,3 +29,3 @@ (function() { | ||
} | ||
return result.warn('Greetings, space traveller. ' + 'We are in the golden age of prefix-less CSS, ' + 'where Autoprefixer is no longer needed for your stylesheet.'); | ||
return result.warn('Greetings, time traveller. ' + 'We are in the golden age of prefix-less CSS, ' + 'where Autoprefixer is no longer needed for your stylesheet.'); | ||
}; | ||
@@ -32,0 +32,0 @@ |
@@ -26,3 +26,5 @@ (function() { | ||
ref = flexSpec(prefix), spec = ref[0], prefix = ref[1]; | ||
if (spec === 2009) { | ||
if (spec !== 2009) { | ||
return FlexDirection.__super__.insert.apply(this, arguments); | ||
} else { | ||
already = decl.parent.some(function(i) { | ||
@@ -51,4 +53,2 @@ return i.prop === prefix + 'box-orient' || i.prop === prefix + 'box-direction'; | ||
return decl.parent.insertBefore(decl, cloned); | ||
} else { | ||
return FlexDirection.__super__.insert.apply(this, arguments); | ||
} | ||
@@ -55,0 +55,0 @@ }; |
@@ -17,11 +17,39 @@ (function() { | ||
FlexFlow.names = ['flex-flow']; | ||
FlexFlow.names = ['flex-flow', 'box-direction', 'box-orient']; | ||
FlexFlow.prototype.set = function(decl, prefix) { | ||
var ref, spec; | ||
FlexFlow.prototype.insert = function(decl, prefix, prefixes) { | ||
var already, cloned, dir, orient, ref, spec, value, values; | ||
ref = flexSpec(prefix), spec = ref[0], prefix = ref[1]; | ||
if (spec === 2012) { | ||
return FlexFlow.__super__.set.apply(this, arguments); | ||
} else if (spec === 'final') { | ||
return FlexFlow.__super__.set.apply(this, arguments); | ||
if (spec !== 2009) { | ||
return FlexFlow.__super__.insert.apply(this, arguments); | ||
} else { | ||
values = decl.value.split(/\s+/).filter(function(i) { | ||
return i !== 'wrap' && i !== 'nowrap' && 'wrap-reverse'; | ||
}); | ||
if (values.length === 0) { | ||
return; | ||
} | ||
already = decl.parent.some(function(i) { | ||
return i.prop === prefix + 'box-orient' || i.prop === prefix + 'box-direction'; | ||
}); | ||
if (already) { | ||
return; | ||
} | ||
value = values[0]; | ||
orient = value.indexOf('row') !== -1 ? 'horizontal' : 'vertical'; | ||
dir = value.indexOf('reverse') !== -1 ? 'reverse' : 'normal'; | ||
cloned = this.clone(decl); | ||
cloned.prop = prefix + 'box-orient'; | ||
cloned.value = orient; | ||
if (this.needCascade(decl)) { | ||
cloned.raws.before = this.calcBefore(prefixes, decl, prefix); | ||
} | ||
decl.parent.insertBefore(decl, cloned); | ||
cloned = this.clone(decl); | ||
cloned.prop = prefix + 'box-direction'; | ||
cloned.value = dir; | ||
if (this.needCascade(decl)) { | ||
cloned.raws.before = this.calcBefore(prefixes, decl, prefix); | ||
} | ||
return decl.parent.insertBefore(decl, cloned); | ||
} | ||
@@ -28,0 +56,0 @@ }; |
@@ -331,3 +331,8 @@ (function() { | ||
Prefixes.prototype.unprefixed = function(prop) { | ||
return this.normalize(vendor.unprefixed(prop)); | ||
var value; | ||
value = this.normalize(vendor.unprefixed(prop)); | ||
if (value === 'flex-direction') { | ||
value = 'flex-flow'; | ||
} | ||
return value; | ||
}; | ||
@@ -334,0 +339,0 @@ |
@@ -187,2 +187,5 @@ (function() { | ||
}); | ||
if (unprefixed === 'flex-flow') { | ||
notHack = true; | ||
} | ||
if (notHack && !_this.withHackValue(decl)) { | ||
@@ -189,0 +192,0 @@ if (decl.raw('before').indexOf("\n") > -1) { |
{ | ||
"name": "autoprefixer", | ||
"version": "6.6.1", | ||
"version": "6.7.0", | ||
"description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website", | ||
@@ -16,13 +16,13 @@ "keywords": [ | ||
"dependencies": { | ||
"browserslist": "~1.5.1", | ||
"caniuse-db": "^1.0.30000604", | ||
"browserslist": "~1.6.0", | ||
"caniuse-db": "^1.0.30000613", | ||
"normalize-range": "^0.1.2", | ||
"num2fraction": "^1.2.2", | ||
"postcss": "^5.2.8", | ||
"postcss": "^5.2.11", | ||
"postcss-value-parser": "^3.2.3" | ||
}, | ||
"devDependencies": { | ||
"browserify": "^13.1.1", | ||
"browserify": "^13.3.0", | ||
"eslint-config-postcss": "^2.0.2", | ||
"fs-extra": "^1.0.0", | ||
"fs-extra": "^2.0.0", | ||
"gulp": "^3.9.1", | ||
@@ -29,0 +29,0 @@ "gulp-coffee": "^2.3.3", |
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
208127
4432
+ Addedbrowserslist@1.6.0(transitive)
+ Addedelectron-to-chromium@1.5.49(transitive)
- Removedbrowserslist@1.5.2(transitive)
Updatedbrowserslist@~1.6.0
Updatedcaniuse-db@^1.0.30000613
Updatedpostcss@^5.2.11