~/talk

Scope in CSS

Talkat CSS Day 2025 · 2025-06-05..06-06· [css, web-platform]
slides:none on file

Explains why scoping matters and compares approaches: traditional classes, CSS Modules, Tailwind utilities, iframes and Shadow DOM for hard isolation, and the new @scope at-rule with its donut scope stop and proximity tie‑breaker. Demonstrates the surprising test of 10,000 cards with per‑component style tags that shows little rendering or memory penalty, and highlights the DOM‑injected DOM‑blasted inline style blocks as a low‑tooling way to get component scoping that appears to work in practice.

AI-written summary · about

  1. 0:00Introduction
  2. 1:52What is scope in CSS
  3. 3:57CSS is naturally scoped
  4. 6:04Global CSS problems
  5. 8:11Advanced scoping tools
  6. 12:48CSS modules and colocation
  7. 16:40Web platform scoping limits
  8. 17:01Hardcore scoping with iframes
  9. 19:09ShadowDOM in practice
  10. 22:20New @scope rule
  11. 24:26Donut scoping in @scope
  12. 27:16Proximity in @scope
  13. 31:48DOM blasters with @scope
  14. 36:20Recap and future
  15. 38:08Q&A
~/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.