This is part four of a five-part series discussing the Web Components specifications. In part one, we took a 10,000-foot view of the specifications and what they do. In part two, we set out to build a custom modal dialog and created the HTML template for what would evolve into our very own custom HTML element in part three.
An Introduction to Web Components
Crafting Reusable HTML Templates
Creating a Custom Element from Scratch
… Read article
The post Encapsulating Style and Structure with Shadow DOM appeared first on CSS-Tricks.