3 ms·
Autoprefixer should take care of this for you. You write standard grid layout and it works on IE11.
by thangngoc89 9y ago
Autoprefixer should take care of this for you. You write standard grid layout and it works on IE11.
- RussianCow 9y agoMy understanding is that the MS properties don't map 1-to-1 onto the standard CSS properties, so I don't think this would always work, hence the question. That said, I assumed Autoprefixer didn't support CSS Grid for that reason, so thanks for pointing out that it does.
- dmix 9y agoAutoprefixer doesn't just add prefixes, it translates the the syntax to browser compatible code as well, for example: a { display: flex; } Translates to: a { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; } It supports the 27 differences between the various browsers.
- ksenzee 9y agoAutoprefixer doesn't take care of this for you. You either write a bunch of -ms properties, or get your preprocessor to do it for you. Here's a working example: https://codepen.io/ksenzee/pen/OzRejj https://codepen.io/ksenzee/pen/OzRejj
- JimDabell 9y agoThis is not true. IE11 simply doesn't support the whole of CSS Grid, and tools like Autoprefixer don't and can't add support. If you limit yourself to only using the parts of CSS Grid that IE11 supports, then you can write the standard equivalent to that subset and Autoprefixer will translate it for you, but you can't "just write standard grid layout", because that includes things there is no IE11 equivalent for.