~/talk

Containers, What Do They Know?

Talkat SmashingConf Freiburg 2023 · 2023-09-04..09-06· [css, web-platform]
slides:none on file

Browsers now implement CSS container queries but only when elements are marked as containers (use container-type: inline-size or size) and when containment prevents feedback loops, so use inline-size containment for most layouts and reserve full size containment for scrollable boxes. Container queries measure ancestor element boxes (children cannot self‑query), support named containers and CQ units (container-relative vw/vh equivalents), work well with web components, and enable style queries and state queries emerging in engines; polyfills are possible but slower than native.

AI-written summary · about

  1. 0:00The history of containers
  2. 2:36The infinite loop problem
  3. 7:46The evolution of responsive web
  4. 11:08Implementing container queries
  5. 17:04Using container query syntax
  6. 22:17Advanced layout strategies
  7. 28:26Container query units
  8. 31:16Style and state queries
  9. 37:18Q&A and CSS best practices
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.