~/talk

Ghost in the Shadow DOM

Talkat Web Directions Code 2013 · 2013-05-02..05-03· [web-platform, web-animation]
slides:none on file

Shadow DOM provides true DOM encapsulation in Chrome via webkitShadowRoot and the content tag for node distribution, letting a component inject its own <style> and custom pseudo elements (must start with x-) without leaking styles. The demo builds a slider that distributes three images into template slots, uses :host and a webkit distributed selector to style distributed H1s, works in Chrome (Canary/Stable confusion noted) and via a polyfill for ES5 browsers but has lingering bugs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09Shadow DOM overview
  3. 3:01Basic Shadow DOM setup
  4. 4:26Content tags for distribution
  5. 5:51Styling inside and outside
  6. 8:47Distributed nodes limitations
  7. 10:31Advanced slider example
  8. 11:55When to use Shadow DOM
  9. 12:15Further resources
~/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.