Closed coreymason closed 10 years ago
Maybe browsers
options do no set? When I try with binary:
echo "input[type="search"] {
-webkit-appearance: textfield;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}" | ./autoprefixer -b 'android >= 2.1'
it returns
input[type=search] {
-webkit-appearance: textfield;
-webkit-box-sizing: content-box;
box-sizing: content-box;
}
You're missing the options
key, so the browsers aren't actually being set. Try this:
autoprefixer: {
dev: {
options: {
browsers: ['> 1%', 'Android >= 2.1', 'Chrome >= 21', 'Explorer >= 7', 'Firefox >= 17', 'Opera >= 12.1', 'Safari >= 6.0'],
}
src: 'style.css'
}
},
That works, thanks.
It is my understanding that for the android 2.3 browser
-webkit-box-sizing
is needed (http://caniuse.com/#search=box-sizing) but yet autoprefixer is removing it. Also, is there a way to stop autoprefixer from removing what it thinks is unnecessary so that it only adds to my css?This is the relevant section of my Gruntfile...
Before...
After...