Inspector Web and the Mystery of the Shadow DOM
summary
Claims that Shadow DOM gives true encapsulation for reusable widgets and demonstrates it practically: use Chrome Canary with the Dimitri Glazkov polyfill, manipulate shadowRoot, content and shadow tags, and the template/is pattern to declaratively mount components. Built a news component that remixes a messy UL into separated breaking and other lists; native elements (video, input range) already use nested shadow DOMs. Works as a live prototype but creation is experimental in browsers and needs polyfills for production use.
AI-written summary · about
chapters (18)
- 0:00Start
- 1:01How Do We Currently Build Websites and Web Applications
- 3:28Shadow Dom
- 4:10The Web Inspector
- 5:34Nested Shadow Dom
- 6:19Create Minimal Shadow
- 9:18Content Tag
- 12:00Tags Template and Elements
- 12:52Comment Template
- 14:38Custom Html Element
- 15:50Custom Element
- 16:35Extending the Unordered List
- 17:40How Does the Browser Know Which Elements To Put In in each Div and each Unordered List
- 18:14The Select Attribute
- 20:58Css Selectors and Specificity
- 21:25Apply Author Styles
- 21:56Reset Style Inheritance
- 24:51Webkit Prefix Tiles
related talks
06mUnlocking the Power of Shadow DOM
13mGhost in the Shadow DOM
32mFuture CSS in Web Components
42mWeb components and the future of web development
36mWeb components - A whirlwind tour thru the future of the web
42mThe Good, The Bad, The Web Components
42mWorking in the Shadow (DOM) - How to test Web Components
29mBreak out from the framework: Web Components to the rescue
