i'm using autoprefixer with gulp to add browser render prefix to properties. but seems like autoprefixer ignoring all grid properties.
gulp.task('postcss',function() {
console.log("Running postcss task");
var plugins = [autoprefixer({browsers: "last 5 versions"}),orderValues()];
return gulp.src('www/css/*.css')
.pipe(postcss(plugins,{ map:true , inline:true }))
.pipe(gulp.dest("www/css/"));
});
This feature is disabled by default. You need to enable it in the options given to Autoprefixer with
grid: true
Documentation of Autoprefixer
The decision was made after a vote on Twitter (Issue #817) and the reason behind that is that the old Grid specification implemented in IE10-11 and Edge 12-15 is way too different from the modern one implemented in Chr, Fx, Saf (?) and incoming Edge 16.
You'll need more manual work to achieve an equivalent result on IE10-Edge 15, either a fallback or restraining from using unsupported properties (
grid-area
, etc) and values (repeat()
I think, etc): in both cases it can't be automatically done by Autoprefixer so nope, disabled by default.EDIT: Going farther than your question and answering "What can I do with browsers supporting the old first Grid Layout spec introduced with IE10?":
@supports (grid-area: auto) { /* */ }
but not
@supports (display: grid) {}
which won't work alas (see article).