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 complex ways.
So right away developers were asking
to measure (or query)
not just the viewport,
but other elements on the page.
2011-2022Selector Queries Element Queries Container Queries
There have been multiple approaches to this
over the years,
using a variety of names…
And it became one of the
most requested features in CSS.
Browsers knew we were asking,
they knew we wanted this feature,
and they all gave us the same answer…
Container queries will never be possible on the web. They would cause infinite layout loops.