DN

Dev News

Signals from the builders shaping tomorrow.

User avatar

Alex Rivera

Pro member

What Else Could Container Queries… Query?

Fast-moving teams are rewriting the rules of deployment by treating inference as a product layer, not just runtime plumbing.

Daniel Schwarz Daniel Schwarz
•Published on Dec 1, 2025
Circuit board thumbnail

I’ll admit, when container queries first shipped back in 2022, I didn’t really pay attention. I mean, why container size queries when we already have media queries? Why container style queries when custom properties inherit anyway (they don’t work with standard properties… yet)? Their use cases seemed like edge cases to me, enabling us to do things that we could already do but in a different way. Here’s a container size queries demo by Kevin Powell. As a note, all major browsers support size queries in the following demo, but other demos in this article may require the latest Chrome. Container scroll-state queries came along with their unique capabilities — the ability to find out whether a container is scrollable, or is scroll-snapped to a scroll target, or has position: sticky and is ‘stuck.’ Literally, as I’m writing this, Chrome announced scrolled support, which is a bit different to scrollable.