What Else Could Container Queries… Query?
How far can we really go with container queries? There are dozens of media queries now, so what if there were dozens of container queries as well? What could we use them for?
Chrome 143 has introduced anchored fallback container queries to help us query the currently applied fallback position of anchored elements.…
attr() function. The CSS @container at-rule lets us apply styles to other elements depending on a container’s size or styles. It works almost the same way as a traditional @media query but we are not limited to only querying the viewport.
.parent … Modern CSS keeps giving us a lot of new, easier ways to solve old problems, but often the new features we’re getting don’t only solve old problems, they open up new possibilities as well.
Container queries are one of those …