Brian Kardell: Reframing Container Queries as Component-Level Responsive Design

Brian Kardell has posted an update on the long-requested CSS feature commonly called "container queries," which he prefers to frame as "Responsive Design for Components."

There does seem to be some general agreement on at least one part of what I am going to call instead "Responsive Design for Components" and that is that flipping the problem on its head is better.

The flip, as described, means handling responsiveness at the property level rather than through a media query.

The idea remains in the ideation phase, with others exploring different approaches, but it is notable for two reasons: it appears to have traction, and it sidesteps the "well that's just not how browsers work" objection that repeatedly dogged container queries.

Kardell also points to what he calls "lightspeed progress" in standards work, citing ResizeObserver as evidence:

Consider that we shifted the stalemate conversation and ResizeObserver was envisioned, incubated, speced, tested, agreed upon, iterated on (we got things wrong!) and implemented in all browsers in about 2 years

Two years, the piece notes, is remarkably fast for a standards process.