Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's the argument for container queries, in my view.

I imagine container queries will totally change the way I write CSS as soon they are broadly supported.

Of course this would not make for a truly constrained-based layout definition. But it would at least make working this way somewhat possible.

The example where flex-directon is switched using a container query is spot-on. That's exactly ly what I sometimes miss being able to do in HTML+CSS.

Apparently there is a JS polyfill (awesome given the problem) but I haven't tried it and I assume the performance implications are bad.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: