~/talk

Why Doesn't CSS Have Scope?

Talkat CSS Day 2023 · 2023-06-08..06-09· [css, frontend-architecture]
slides:none on file

Argues that CSS already scopes (selectors and the lone global asterisk), demonstrates alternatives like styled-components createGlobalStyle, iframes, declarative Shadow DOM and the defunct scoped/@scope drafts, and builds a tiny tool CSS scopulation Enterprise Max AI (0.5 KB) that replaces a root character with a data attribute to scope CSS — it mostly works but still needs JavaScript for resizing and cannot stop inheritance; even cites Entombed’s To Ride, Shoot Straight, and Speak The Truth as a framing example.

AI-written summary · about

  1. 0:00Introduction
  2. 3:54CSS origin and scoping
  3. 7:23Global selectors by default
  4. 10:36CSS consistency issues
  5. 13:00Global namespace debate
  6. 17:56CSS scoping tools and limits
  7. 22:49Encapsulating CSS without JS
  8. 27:03Inheritance and CSS limits
  9. 30:58Iframes for encapsulation
  10. 32:41CSS mistakes and politics
  11. 35:29Web fundamentals and new CSS
  12. 37:37Future projects and closing
  13. 42:10Q&A: Designers and CSS
  14. 44:57Q&A: Miscellaneous
~/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.