Chrome is experimenting with @container, a property within the CSS Working Group Containment Level 3 spec. @container brings us the ability to style elements based on the size of their parent container. The @container API is not stable, and is subject to syntax changes. If you try it out on your own, you may encounter a few bugs.

3m read time From css-tricks.com
Post cover image
Table of contents
Container queries will be the single biggest change in web styling since CSS3, altering our perspective of what “responsive design” means.Container Queries + Media QueriesContainer Queries + CSS GridUsageLimitations
3 Comments

Sort: