Web Components
summary
Demonstrates how to register a custom element with document.registerElement (name must include a hyphen), use the createdCallback and attributeChangedCallback to initialize and react, and attach a shadowRoot to hide internal markup and scope styles; shows content distribution via the content/select element and the part attribute for limited styling hooks. Recommends testing in Chrome Canary with experimental web platform flags and mentions Polymer, X-Tag and Brick polyfills and component sets.
AI-written summary · about
chapters (7)
- 0:00Mark Dalgleish WEB COMPONENTS
- 1:16Components Today
- 8:29Custom Elements
- 10:27Shadow DOM
- 11:50Encapsulated Styles
- 14:43Just the beginning
- 15:44Open the console and experiment








