Earlier last month, Ethan wrote about the need for container queries, a request that is frequently raised in any discussion about the future of responsive design. Ethan’s article is well worth a read, especially if you’re unfamiliar with the issue, but here’s a brief summary: the dimensions of the viewport are a poor proxy for judging layout requirements for components that can exist in a variety of contexts. If we could query the dimensions of a component’s parent container instead, our layouts would be more robust, and our code easier to maintain.
The need for this feature has long been evident. In fact, my erstwhile colleague Andy Hume
... read the whole story at paulrobertlloyd.com.