Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Styling the Shadow Dom

Styling the Shadow Dom

Tiangle JS meetup talk about how to style the shadow DOM

Andres Galante

September 26, 2016
Tweet

More Decks by Andres Galante

Other Decks in Technology

Transcript

  1. CSS

  2. The ShadowRoot A shadow root is a document fragment that

    gets attached to a “host” element.
  3. CSS selectors from the outer page don’t apply inside your

    component. Styles defined inside don’t bleed out. They’re scoped to the host element.