sindresorhus / gulp-autoprefixer

Prefix CSS
MIT License
694 stars 50 forks source link

vendor prefixes being removed starting @1.0.0 #18

Closed jparkerweb closed 10 years ago

jparkerweb commented 10 years ago

Starting at version 1.0.0 (also tested with 1.0.1), vendor prefixes for box-sizing are being removed from my compiled css.

gulp-autoprefixer call .pipe(autoPrefixer("last 4 versions", "Firefox >= 27", "Blackberry >= 7", "IE 8", "IE 9"))

test css before autoprefixer:

.solr-index-lists *, 
.solr-index-lists *:before, 
.solr-index-lists *:after {
    -moz-box-sizing: border-box; 
    -webkit-box-sizing: border-box; 
    box-sizing: border-box;
}

compiled css with only gulp-autoprefixer running in the pipe

.solr-index-lists *, 
.solr-index-lists *:before, 
.solr-index-lists *:after {
  box-sizing: border-box;
}

I reverted back to version 0.0.9 and I get the expected output:

.solr-index-lists *, 
.solr-index-lists *:before, 
.solr-index-lists *:after {
    -moz-box-sizing: border-box; 
    -webkit-box-sizing: border-box; 
    box-sizing: border-box;
}

I've also tested just using box-sizing: border-box; in the source css but I get the same output (no prefixes with version >= 1.0.0 and expected prefixes with version 0.0.9

jparkerweb commented 10 years ago

just realized the API changed in v1.0.0.

{browsers: ['last 2 versions']}