Letting us measure the ‘viewport’
that our page is rendered in –
and them adjust our designs based on that.
That’s pretty great,
until we start adjusting our designs
in more complexways.
So right away developers were asking
to measure (or query)
not just the viewport,
but other elements on thepage.
2011-2022Selector Queries Element Queries Container Queries
There have been multiple approaches to this
over the years,
using a variety ofnames…
And it became one of the
most requested features inCSS.
Browsers knew we were asking,
they knew we wanted this feature,
and they all gave us the sameanswer…
Container queries will never be possible on the web. They would cause infinite layoutloops.