YES
Fresh install
create-react-app: 1.5.2
YARN version v1.3.2
autoprefixer, css, display: grid
node -v: v8.9.1npm -v: 5.6.0yarn --version (if you use Yarn): 1.5.2npm ls react-scripts (if you haven鈥檛 ejected): Then, specify:
(Write your steps here:)
npm i -g create-react-appcreate-react-app autoprefixer.demo { display: grid } to App.css fileyarn build.demo {
display: -ms-grid;
display: grid;
}
.demo{display:grid}

I tried to eject and change the autoprefixer option by adding
grid: trueit works
Folow https://github.com/postcss/autoprefixer/issues/603#issuecomment-365015199
SO please add that option to your webpack autoprefixer config by default
This isn't a create-react-app bug, being that autoprefixer has CSS Grid Layout prefixing disabled by default and to my knowledge create-react-app makes no claims to CSS Grid Layout support.
However, this could be a beneficial proposal. It's important to note though, even with autoprefixer configured to prefix Grid properties, developers will likely need to consider using feature queriers to better support IE 10+. The Grid implementation that exists in IE 10+ is based on the 2011 specification, and the implementation supported today in Chrome, Firefox, and Safari is quite different.
Rachel Andrew, has a great article discussing the challenges of Grid support in IE, which I came across when reading through MDN.
That all being said, configuring autoprefixer to prefix Grid properties would be helpful for IE, although additional CSS overhead is likely.
If it's decided that Grid prefixing should be enabled, I'd be happy to submit a PR.
FYI, I haven't used Grid myself just yet, but I know it's super 馃敟 right now, and will likely only grow in popularity.
Any news here? I don't want to eject, prefixing manually for now.. :)
@BuckyMaler what would be the detriment to just setting grid to true in the webpack.config?
@joelrindfleisch none. Just be aware of the IE 10+ pain points mentioned above, and know that based on browserslist config CSS output size may increase due to additional vendor prefixing.
Grid is off by default. This will be documented.
Most helpful comment
This isn't a
create-react-appbug, being thatautoprefixerhas CSS Grid Layout prefixing disabled by default and to my knowledgecreate-react-appmakes no claims to CSS Grid Layout support.However, this could be a beneficial proposal. It's important to note though, even with
autoprefixerconfigured to prefix Grid properties, developers will likely need to consider using feature queriers to better support IE 10+. The Grid implementation that exists in IE 10+ is based on the 2011 specification, and the implementation supported today in Chrome, Firefox, and Safari is quite different.Rachel Andrew, has a great article discussing the challenges of Grid support in IE, which I came across when reading through MDN.
That all being said, configuring
autoprefixerto prefix Grid properties would be helpful for IE, although additional CSS overhead is likely.If it's decided that Grid prefixing should be enabled, I'd be happy to submit a PR.
FYI, I haven't used Grid myself just yet, but I know it's super 馃敟 right now, and will likely only grow in popularity.