by ravenstine · 8y ago · 0 comments
Look at this: https://caniuse.com/#feat=css-grid
78.08% global usage, and that's if you use autoprefixing.
That's just pathetic. I'm as much a fan of CSS grid as the next person, but no way I'm going to build a site or an app with it only to have my boss yell at me because ~20% of the audience says the design looks like garbage or doesn't work.
One recommendation from the video the other day was also very good in this regard: https://youtu.be/7kVeCqQCxlk?t=23m45s
Create something that works on mobile, then use grid to build outwards. Then you get reasonable views on unsupported platforms (the mobile-centric view, and most platforms that don't support grid are Mobile) and grid works where it can / needs to.
IE11 will -never- support grid. Don't let that hold you back! (Unless you're specifically developing for an IE11-rich market)
2) IE11 has an -ms- prefixed implementation of grid, it's just somewhat inconsistent with the final spec. That said, it's also rather feature complete comparatively, so if you must support IE11, and must give it grids, there is an option to use IE11's native grids as a terrible fallback.
3) Windows 7's extended support ends January 2020. There is less than two years left of security patches left for Windows 7. If your company isn't already planning to migrate to something more recent than Windows 7, time is ticking.
So it very much depends on your use case, as always. Mostly what China is looking to do is export and acquire, they've shown a very low interest in importing in any broad sense. Most businesses around the world will never have meaningful access to selling into China, unless their economic approach radically changes.
And once you have a family of layouts, it's not a big deal to add one more layout that covers non-grid-capable browsers.
The design choice that makes this all tenable is to accept that the site isn't supposed to look identical across every browser. You're accepting that you'll do progressive enhancement of layout. Old browsers still get all the content, they will just get it in a more boring format (like all stacked into a single column).
This isn't javascript where you can just throw a polyfill (and even there, you're usually trading in multiple kilobytes of polyfills for a random feature you could easily have worked around.)
Instead, the layout implemented so that it works in all common browsers including IE11, and I don't need CSS grid anyway (I'm not implementing the layout twice, with all the potential bugs that can happen)