SlideShare a Scribd company logo
WebComponents or shadow 
side of the Doom 
Grzegorz Wilczyński 
@wilq_ 
Wrocław, 17.11.2014
But Why?
Four Horsemen 
Custom Elements 
HTML Imports 
Templates 
Shadow DOM
Custom Elements 
<polymer-element 
name="post-list" 
extends="post-list-base" 
attributes="type posts"> 
<template> 
</template> 
</polymer-element>
Custom Elements 
<post-list> 
post list 
</post-list> 
! 
<post-list posts="{foo: 'bar'}" type="pretty"> 
post list with attributes 
</post-list>
Templates 
<template repeat="{{post in posts}}"> 
<post-card> 
<img src="{{post.avatar}}"> 
<h2>{{post.username}}</h2> 
<p>{{post.text}}</p> 
</post-card> 
</template>
Templates 
<template> 
<div class="card-header" layout horizontal 
center> 
<content select="img"></content> 
<content select="h2"></content> 
</div> 
<content></content> 
<template>
Shadow DOM
WebComponents or shadow side of the Doom
Shadow DOM 
Shadow DOM gives us DOM tree 
encapsulation and style boundaries, 
but please don't: 
! 
:host([data-post-status="warning"]) /deep/ 
#postState /deep/ #submitButton /deep/ core-icon 
{ color: #259b24; }
HTML Imports 
<link rel="import" href="foo/bar.html">
Are We Componentized Yet? 
X-Tags by Mozilla 
Polymer by Google 
Bosonic
Warehouse 
Search Bower Packages 
Component Kitchen 
Custom Elements
Sources 
http://webcomponents.org 
https://www.polymer-project.org 
http://pascalprecht.github.io/dont-stop- 
thinking-about-tomorrow/ 
http://jonrimmer.github.io/are-we-componentized- 
yet/
Thank YOU

More Related Content

PPTX
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
PPTX
Challenges going mobile
PDF
Front-end Rails-приложений приложений, основанный на БЭМ
PPTX
Powerpoint
PPTX
WebMatrix 100-level presentation
PPTX
Iasi code camp 12 october 2013 shadow dom - mihai bîrsan
KEY
HTML CSS & Javascript
PPT
Ashish
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
Challenges going mobile
Front-end Rails-приложений приложений, основанный на БЭМ
Powerpoint
WebMatrix 100-level presentation
Iasi code camp 12 october 2013 shadow dom - mihai bîrsan
HTML CSS & Javascript
Ashish

What's hot (18)

PPTX
Responsive Web Design & APEX Theme 25
PPTX
uptu web technology unit 2 Css
PDF
HTML5 workshop, part 1
PDF
Advanced JQuery Mobile tutorial with Phonegap
PPTX
Web Development Basics: HOW TO in HTML
PPTX
Introduction to jQuery Mobile
PPTX
Introduction to Jquery
PDF
Introduction to jQuery Mobile - Web Deliver for All
PPTX
Wd hw 1
PDF
HTML5 e Css3 - 7 | WebMaster & WebDesigner
PPT
jQuery Mobile with HTML5
PDF
Fundamental JQuery
PDF
Overview on jQuery mobile
PDF
jQuery Mobile: Progressive Enhancement with HTML5
PPTX
Web Development
PPTX
CSC103 Web Technologies: HTML, CSS, JS
PDF
Introduction to HTML, CSS, and Javascript
PDF
Styling components with JavaScript
Responsive Web Design & APEX Theme 25
uptu web technology unit 2 Css
HTML5 workshop, part 1
Advanced JQuery Mobile tutorial with Phonegap
Web Development Basics: HOW TO in HTML
Introduction to jQuery Mobile
Introduction to Jquery
Introduction to jQuery Mobile - Web Deliver for All
Wd hw 1
HTML5 e Css3 - 7 | WebMaster & WebDesigner
jQuery Mobile with HTML5
Fundamental JQuery
Overview on jQuery mobile
jQuery Mobile: Progressive Enhancement with HTML5
Web Development
CSC103 Web Technologies: HTML, CSS, JS
Introduction to HTML, CSS, and Javascript
Styling components with JavaScript
Ad

Viewers also liked (20)

ODP
Better Code With Python
PDF
Js design patterns
PDF
Performance patterns
PPT
High-performance DOM scripting
PDF
Open-source Mic Talks at AOL
PDF
Reactive JavaScript
PDF
Javascript Design Patterns
PDF
JavaScript Patterns
PPTX
Polymer and web component
PDF
Large-Scale JavaScript Development
PDF
High Performance JavaScript 2011
PDF
JavaScript is a buffet - Scriptconf 2017 keynote
PDF
Scalable JavaScript Design Patterns
PDF
Introduction to polymer project
PDF
Fundamental JavaScript [UTC, March 2014]
PDF
Modern JavaScript Applications: Design Patterns
PDF
Polymer project presentation
PDF
Javascript Best Practices
PDF
Future-proofing Your JavaScript Apps (Compact edition)
PDF
Writing Efficient JavaScript
Better Code With Python
Js design patterns
Performance patterns
High-performance DOM scripting
Open-source Mic Talks at AOL
Reactive JavaScript
Javascript Design Patterns
JavaScript Patterns
Polymer and web component
Large-Scale JavaScript Development
High Performance JavaScript 2011
JavaScript is a buffet - Scriptconf 2017 keynote
Scalable JavaScript Design Patterns
Introduction to polymer project
Fundamental JavaScript [UTC, March 2014]
Modern JavaScript Applications: Design Patterns
Polymer project presentation
Javascript Best Practices
Future-proofing Your JavaScript Apps (Compact edition)
Writing Efficient JavaScript
Ad

Similar to WebComponents or shadow side of the Doom (20)

PDF
Web components are the future of the web - Take advantage of new web technolo...
PPTX
Web Components
PDF
Tech talk polymer
PDF
Custom Elements with Polymer Web Components #econfpsu16
PPTX
Web Components
PDF
Introduction to Web Components & Polymer Workshop - JS Interactive
PPTX
[DevDay 2016] Web Components, is it the future of Web Development? Speaker: V...
PDF
Web Components and Modular CSS
PDF
Levent-Gurses' Introduction to Web Components & Polymer
PPTX
Web components
PDF
2014 03-25 - GDG Nantes - Web Components avec Polymer
PPTX
User-Customizable Web Components for Building One-Page Sites
PDF
Presentation About The Web Components | Selma SALTIK
PDF
Devoxx France - Web Components, Polymer et Material Design
PPTX
Віталій Бобров — Web components, Polymer and Drupal
PDF
Try Web Components
PPTX
Introduction to Web Components & Polymer Workshop - U of I WebCon
PPT
Reaching for the Future with Web Components and Polymer
PDF
Web components the future is here
PPTX
Web components. Compose the web.
Web components are the future of the web - Take advantage of new web technolo...
Web Components
Tech talk polymer
Custom Elements with Polymer Web Components #econfpsu16
Web Components
Introduction to Web Components & Polymer Workshop - JS Interactive
[DevDay 2016] Web Components, is it the future of Web Development? Speaker: V...
Web Components and Modular CSS
Levent-Gurses' Introduction to Web Components & Polymer
Web components
2014 03-25 - GDG Nantes - Web Components avec Polymer
User-Customizable Web Components for Building One-Page Sites
Presentation About The Web Components | Selma SALTIK
Devoxx France - Web Components, Polymer et Material Design
Віталій Бобров — Web components, Polymer and Drupal
Try Web Components
Introduction to Web Components & Polymer Workshop - U of I WebCon
Reaching for the Future with Web Components and Polymer
Web components the future is here
Web components. Compose the web.

Recently uploaded (20)

PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
Digital Logic Computer Design lecture notes
PPT
Project quality management in manufacturing
PPTX
Construction Project Organization Group 2.pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
web development for engineering and engineering
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Lecture Notes Electrical Wiring System Components
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPTX
Sustainable Sites - Green Building Construction
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPT
Mechanical Engineering MATERIALS Selection
PPTX
Geodesy 1.pptx...............................................
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Automation-in-Manufacturing-Chapter-Introduction.pdf
OOP with Java - Java Introduction (Basics)
Model Code of Practice - Construction Work - 21102022 .pdf
Digital Logic Computer Design lecture notes
Project quality management in manufacturing
Construction Project Organization Group 2.pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
web development for engineering and engineering
Foundation to blockchain - A guide to Blockchain Tech
Lecture Notes Electrical Wiring System Components
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Sustainable Sites - Green Building Construction
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Mechanical Engineering MATERIALS Selection
Geodesy 1.pptx...............................................
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx

WebComponents or shadow side of the Doom