Gulp で npm i autoprefixer
gulp.task("default", () => {
return gulp.src("src/style.css")
.pipe(autoprefixer({ grid: true }))
.pipe(gulp.dest("dist"));
});
/* Autoprefixer’s IE-friendly translation */
.grid {
display: -ms-grid;
display: grid;
grid-gap: 10px;
-ms-grid-rows: 100px 10px 100px;
-ms-grid-columns: 1fr 10px 1fr;
grid-template:
"a b" 100px
"c d" 100px /
1fr 1fr;
}
.cell-A {
-ms-grid-row: 1;
-ms-grid-column: 1;
grid-area: a;
}
.cell-B {
-ms-grid-row: 1;
-ms-grid-column: 3;
grid-area: b;
}
.cell-C {
-ms-grid-row: 3;
-ms-grid-column: 1;
grid-area: c;
}
.cell-D {
-ms-grid-row: 3;
-ms-grid-column: 3;
grid-area: d;
}