Responsive Components: a Solution to the Container Queries Problem

Container Queries, as in, the ability to style elements based on values from a particular element, like its width and height. We have media queries, but those are based on the viewport not individual elements. There are plenty of use cases for them. It’s been said before, but I’ll say it again, if container queries existed, the vast majority of media queries in CSS would actually be container queries.
Discussion about how to pull it off technologically gets …

Responsive Components: a Solution to the Container Queries Problem is a post from CSS-Tricks

Link: https://philipwalton.com/articles/responsive-components-a-solution-to-the-container-queries-problem/