~/talk

Shining Light on the Shadow DOM

Talkat CSS Day 2023 · 2023-06-08..06-09· [web-platform, css]
links:none on file
slides:none on file

Explains how styling actually crosses the shadow boundary: concrete rules for cascade and inheritance, slots target light DOM relationships and cannot style grandchildren, demonstrates autonomous custom elements in vanilla JS with live Lit/CodePen demos, shows a production Red Hat navigation built with light DOM, shadow DOM and fallback markup that works in the wild, catalogs browser inconsistencies (host-context sparsely supported) and compatibility tactics, highlights theming via 36 custom properties that pierce the shadow root, compares approaches including constructible stylesheets and warns that parts = flood (any CSS property, full author control).

AI-written summary · about

  1. 0:00Introduction
  2. 1:58Cassandra Roberts
  3. 8:16Custom Element Registry
  4. 9:26Custom Builtins
  5. 10:45Autonomous Custom Elements
  6. 13:02Encapsulation
  7. 15:26CSS Best Practices
  8. 16:51Building a Web Component
  9. 22:30Live Coding
  10. 32:01Moral of the Story
  11. 32:57Custom Properties
  12. 33:47Generic Properties
  13. 34:40Be Thoughtful
  14. 35:26Spectrum Design Systems
  15. 36:01Web Component Encapsulation
  16. 36:51What is Light on DOM
  17. 38:13Slot tag
  18. 40:05Sloted styling
  19. 41:27Bonkers example
  20. 41:51Part specification
  21. 43:01Part example
  22. 43:43Part in use
  23. 43:59Global attribute names
  24. 44:55Utility languages
  25. 48:05Frameworks
  26. 48:58Conclusion
~/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.