I just started getting into Polymer and am very excited by the prospect of 
web components. Correct me if I am wrong, but it seems like the central 
idea is that developers create components and every component has an 
API-like interface that other developers can use to use the component.

I am currently reading Shadow DOM 201 and had some questions regarding ^, 
^^, and CSS variables.

   1. I understand why ^ and ^^ is necessary, but in general doesn't ^ and 
   ^^ necessitate a developer to either know the sDOM code or dig into it? 
   This seems very un-componenty/goes against the idea behind components to 
   me. In general would it be considered good practice to use ^ and ^^ 
   sparingly? Essentially try not to cross the shadow boundary as much as 
   possible?
   2. If styling should be exposed, it seems like CSS variables is the way 
   to do it since it provides a nice interface for users which seems more 
   componenty to me than ^ and ^^. I was wondering what your thoughts were on 
   this. 
   3. On first take it seems a bit strange to me that each component has to 
   have documentation about what attributes/variables act as the interface 
   with the component especially since the 'API' can be arbitrary.
   4. Is there a good polyfill for CSS variables? It seems like it's being 
   removed in blink 
   
(https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/ScKw9zYRkBc)?

Please let me know if these questions make sense in the context of polymer, 
as I am new I may not be understanding principles correctly.

Thank you
- Jay

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/f5d3ffd8-d418-4b7b-9fcd-c4e09f9f20e8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to