Tagged in

Shadow Dom

Dev Channel
Dev Channel
Developers Channel - the thoughts, opinions and musings from members of the Chrome team.
More information
Followers
18.5K
Elsewhere
More, on Medium

Shadow DOM: fast and encapsulated styles

Shadow DOM is a fairly recent-ish spec that gives you DOM tree encapsulation — it’s one…


Focus inside Shadow DOM

In 2017, across both Chrome and Safari (with Edge and Firefox coming soon), you can encapsulate HTML and CSS in a “shadow root”. Shadow DOM allows you to keep this code separate from the rest of your document. 🙅