~/talk

Keeping Your CSS Small: scopes, containers, and other new stuff

Talkat CSS Day 2022 · 2022-06-09..06-10· [css]
slides:none on file

Builds a dice-roll custom element with a shadow root, template, a button and slot, and shows styles inside the component working and reusing the same underlying stylesheet object via adopted style sheets and CSSStyleSheet.replaceSync. Demonstrates shadow DOM component encapsulation plus CSS shadow parts and exportparts to selectively expose internals which works for targeted styling. Explains scoping proximity as a new tie‑breaker below specificity and outlines a nesting syntax debate (ampersand vs @nest); scope is on the vendors’ timeline this year.

AI-written summary · about

  1. 0:00Introduction
  2. 1:45CSS evolution and challenges
  3. 4:32Shadow DOM benefits
  4. 9:53Styling with Shadow DOM
  5. 12:18CSS variables and Shadow Parts
  6. 15:08Deep dive: CSS Shadow Parts
  7. 18:01Shadow DOM encapsulation
  8. 20:52Shadow DOM with React limits
  9. 22:39CSS Scoping introduction
  10. 26:50Why nesting fails
  11. 28:58Scoping in action
  12. 31:48CSS Nesting challenges
  13. 37:01Nesting syntax options
  14. 38:24Q&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.