Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 991 Bytes

File metadata and controls

18 lines (14 loc) · 991 Bytes

polymer-micro-test

This project explores the question: What is the smallest amount of code that must be added to polymer-micro to create a web component environment that can meet the needs of our open source component collection, Basic Web Components?

The minimalComponent.js file defines a Polymer behavior that can be used with polymer-micro. The behavior adds the following features:

  1. Creation of a shadow root
  2. instantiation
  3. Shimming of CSS styles under the Shadow DOM polyfill
  4. Polymer-style automatic node finding (not sure if we really need this)
  5. The file test-element.html uses polymer-micro and the above behavior to define a very simple component. The page index.html shows that component in use. You can view that page in the live demo.