News for hackers. Stuff that matters.
Re:CSS Grid for UI Layouts by thangngoc89 on Wednesday February 14, 2018 @02:24PM (#16378515)
Autoprefixer should take care of this for you. You write standard grid layout and it works on IE11.
Re:CSS Grid for UI Layouts by JimDabell on Wednesday February 14, 2018 @04:57PM (#16379849)
This 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.

Re:CSS Grid for UI Layouts by ksenzee on Wednesday February 14, 2018 @04:05PM (#16379355)
Autoprefixer 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
Re:CSS Grid for UI Layouts by RussianCow on Wednesday February 14, 2018 @02:47PM (#16378748)
My 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.
Re:CSS Grid for UI Layouts by dmix on Wednesday February 14, 2018 @03:14PM (#16378966)
Autoprefixer 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.