Perusing the docs, I just noticed a change: external stylesheets for local
DOM are now deprecated in favor of *style modules*. Examples are below.

In addition to adding more boilerplate, this wreaks havoc on text editors
like emacs/vim because mixed filetype editing *sucks*. What's the rationale
for deprecating the (granted, experimental) <link rel="import" type="css">?

Furthermore, in the future, can somebody send out announcements for this
kind of thing? The only notice of <style include> was a few lines in the
CHANGELOG.md and there's no mention of deprecation there.

Examples:

*Deprecated:*
<!-- x-foo.html -->
<dom-module id="x-foo">
*  <link rel="import" type="css" href="my-styles.css">*
  <template>...</template>
</dom-module>
<!-- my-styles.css -->
*.red { color: red; }*

*New recommendation:*
<!-- x-foo.html -->
*<link rel="import" href="my-styles.html">*
<dom-module id="x-foo">
  <template>...
*    <style include="my-styles"></style>*
  </template>
</dom-module>
<!-- my-styles.html -->
*<dom-module id="my-styles">*
*  <template>*
*    <style>...</style>*
*  </template>*
*</dom-module>*

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/CACi5S_31b%2BvNgWqk_j7OOzqVCU5bRmdDaOMxOzwCzvJ2uZ3T3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to