DEV Community

Discussion on: CSS Container Queries

Collapse
 
grahamthedev profile image
GrahamTheDev

This really is the thing I am looking forward to the most in CSS.

Put it like this, I have already written a mini poly fill that I am using for a new site I am building.

I think the big problem is going to be older browsers as from what I have seen the “fall back” is hard to do gracefully, so you either have to go mobile first and put up with a crap design on desktops or design everything with careful flex designs that are kind of responsive in the first place and enhance it with container queries.

Be interesting to see what pattern people settle on when this gets released as until we can physically play with it it is hard to know what gotchyas actually exist!

Collapse
 
link2twenty profile image
Andrew Bone

In theory IE will be the only hold out and if that's the case we can almost ignore the issues. 😅

Collapse
 
manlikecliff profile image
ManLikeCliff

IE and it's wahala. My last resort.

Collapse
 
grahamthedev profile image
GrahamTheDev

That is why it will be interesting to see what happens as as long as it displays reasonably well and is usable on IE I am happy.

Unlike most devs I still support IE9 due to accessibility as that is the realm I work in. However whenever I say that people confuse support with pixel perfection so as long as the pattern fallback allows it to be usable and accessible I am happy enough.

Thread Thread
 
link2twenty profile image
Andrew Bone

Where I work we "support" IE11 but it's the same as you if it doesn't break and still makes sense to the end user that's good enough.

Thread Thread
 
grahamthedev profile image
GrahamTheDev

I also have a rule that I can spam polyfills for IE with conditionals, at that stage it normally isn’t as much of a headache as it used to be.