~/talk

Shedding light on the shadow dom

Talkat ScotlandCSS 2016 · on Wednesday, 2016-06-01· [web-platform, component-design]
links:none on file
slides:none on file

Builds a reusable notification component with a close button and timestamp using three lines of JS that call createShadowRoot/attachShadow and root.innerHTML to tuck markup into a shadow root. Uses the now-deprecated content -> slot pattern to project consumer heading and action, styles internals with :host and scoped selectors, and exposes a small API via CSS Custom Properties for color and size. Prototype renders natively in Chrome, works in Opera, needs flags or polyfills (webcomponents.js, polymer, xtag) elsewhere.

AI-written summary · about

  1. 0:00Intro
  2. 0:30A confession
  3. 2:42Why shadow
  4. 6:40Notification
  5. 9:45Style
  6. 14:28Styling
  7. 16:51Custom properties
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.