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

Future CSS in Web Components

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →
Peter Gasston
September 13, 2013

Future CSS in Web Components

An introduction to Web Components and related changes to CSS. Given at CSSConf.eu on 13th September 2013

Peter Gasston

September 13, 2013

Transcript

74 slides
  1. The problem <div class="foo"> … </div> div.foo { color: #f00;

    } <div class="foo"> … </div> .foo { color: #00f; }
  2. <p>Hello</p> <div> <style scoped> p { color: #f00; } </style>

    <p>World!</p> </div> <p>Again</p> Scoped styles
  3. The part attribute var newRoot = el.createShadowRoot(), newEl = '<h2

    part="apes">…</h2>'; newRoot.appendChild(newEl);

More Decks by Peter Gasston

Other Decks in Technology