News for hackers. Stuff that matters.
Re:Tasks That Can Be Done with Pure HTML and CSS by gog on Monday February 11, 2019 @08:38AM (#19134352)
https://caniuse.com/#feat=css-grid

This is probably the reason. There are still browsers out there that don't support it 100% to the spec.

Re:Tasks That Can Be Done with Pure HTML and CSS by dictum on Monday February 11, 2019 @09:13AM (#19134564)
There's no reason to not use CSS Grid, except for not knowing it well enough — and there's no reason not to learn it.

Of those, only IE11 is relevant, as it's a desktop browser, on wider and taller viewports.

Most of these browsers are mobile browsers on devices with narrow viewports, so even the default `display: block` fallback may be sufficient. If you have margins/paddings/widths etc which only make sense in the CSS Grid version, you can set these properties inside an `@supports` query https://developer.mozilla.org/en-US/docs/Web/CSS/@supports

For IE11, it's a choice of presenting visitors with a slightly worse layout, to match the browser (https://philipnewcomer.net/2014/04/target-internet-explorer-... or, if you use Sass or PostCSS, using mixins that output CSS Grid properties with Flexbox as fallback.

Its bugs are well-documented, and most have workarounds https://github.com/philipwalton/flexbugs. Even inline-block can serve as a fallback, if you can avoid whitespace around tags in the markup (https://css-tricks.com/fighting-the-space-between-inline-blo...)

A reasonable fallback doesn't need to match CSS Grid exactly. The whole point of media queries and responsive web design is that the website won't look exactly the same on all devices; it will look and work as good as it needs to look in that specific device.

Re:Tasks That Can Be Done with Pure HTML and CSS by folkrav on Monday February 11, 2019 @09:52AM (#19134828)
My last workplace's policy was to fully support the last couple version of Edge, Firefox and Chrome, but for IE11, it was "it won't be utterly unusable". That approach is becoming more and more commonplace, too. Reasonable fallbacks doesn't mean being perfect, either. I'll be honest anyway, most people still using IE11 these days are either literally stuck with it, or a pretty used to half the sites they visit to be a bit broken.
Re:Tasks That Can Be Done with Pure HTML and CSS by mcv on Monday February 11, 2019 @08:58AM (#19134482)
Not a lot, though. Edge, Chrome, Firefox, Safari, Opera, iOS and Android all support it. Nobody cares about Opera Mini and Blackberry, and the sooner we cut IE11, the better. It's never going to support most of the modern standards.
Re:Tasks That Can Be Done with Pure HTML and CSS by onychomys on Monday February 11, 2019 @09:36AM (#19134717)
It's not that nobody cares about Opera Mini, it's instead that OM users (like me!) have come to accept that some sites will behave in a weird way on the browser, and so it might be necessary to switch to a different one. It's the tradeoff we make to get all of the good things that come along with OM usage.
Re:Tasks That Can Be Done with Pure HTML and CSS by detritus on Monday February 11, 2019 @09:05AM (#19134518)
“Recent-ish versions of Chrome, Firefox, Safari, Opera, iOS and Android all support it”. According to my stats, there's a load of old Chrome & Safari versions using my site that would be tripped up by its use, sadly.

I'm keeping a beady eye on my stats, awaiting the day and can make a site entirely with CSS Grid.

Re:Tasks That Can Be Done with Pure HTML and CSS by tenaciousDaniel on Monday February 11, 2019 @08:44AM (#19134389)
It's not on the blackberry browser, so that's gonna be a no for me! :p