#The 90s Polyfil - A tale of terror
There are people working for many years to create the standards that all of us need, in order to perfect our toolset. One result of such efforts is the draft known as Web Components.
And then, there are people who take all those efforts and use them to bring chaos and revive our worst nightmare and an era dominated by neon lights and Comic Sans. Let me introduce you to The 90s Polyfil.
Ever worked in the 90s? What is your opinion about blinking text, obstrusive popups welcoming you to the page or snappy under construction animated images? If you miss those times and you wish that you could use all those cool and awesome tools today, but you don't know how, The 90s Polyfil is exactly what you need!
##The bitter truth The truth is, that there are no maniacs, trying religiously to bring the 90s web into our lives again. The 90s Polyfil is not about that. It's about providing fun and simple examples for those who want to start working with Web Components, but while trying, they face problems and can't find more information. Each of the Web Components here, shows something different that you can do.
Exactly because this is not meant to be used in any real website, all elements created are meant to work only on the latest Chrome, with the HTML Imports enabled (it's a flag), and they use no polyfil. Because of cross origin restrictions, you need a static server to see the examples. One is included in the project, but you can use any server you might already have.
##Custom Elements
A very simple custom element. Anything you put inside the element, becomes an alert box.
#####Things that you can learn by reading the code
- How do you register a custom element
- How do you use html imports
- How do you cope with unstyled content, while the element is being registered?
- How do you use the equivalent of the "onload" event.
#####Usage
<nineties-welcome>Hello there, Nikos!</nineties-welcome>
Show an "Under Construction" animated icon, along with some custom text.
#####Things that you can learn by reading the code
- Everything included in the 90s Welcome element
- How to render content from a template
- How to access elements inside an imported document
- How to write styles specific for a template's contents
- How to add nodes in the Shadow DOM
#####Usage
<nineties-under-construction>This page is under construction!</nineties-under-construction>
Places as many  
s as you need.
#####Things that you can learn by reading the code
- Everything included in the 90s Welcome element
- How to create Shadow DOM
- How to read custom attributes
#####Usage
<nineties-nbsp length="10"></nineties-nbsp>
Makes the contents inside this element blink
#####Things that you can learn by reading the code
- Everything included in the 90s Welcome element
- How to handle parameters from custom attributes
- How to handle change of attributes (try changing the value of data-duration from the console)
#####Usage
<nineties-blink data-duration="500">Hello there!</nineties-blink>
The infamous spacer.gif at your disposal
#####Things that you can learn by reading the code
- Everything included in the 90s Welcome element
- How to extend an <img> element
#####Usage
<img is="nineties-spacer" width="300" height="200">
The all time favourite marquee
#####Things that you can learn by reading the code
- Everything included in the 90s Welcome element
- Some weird shit to make marquee working without spending too much time on it
#####Usage
<nineties-marquee>Welcome to the 90s!</nineties-marquee>