On Tue, Jan 19, 2016 at 2:20 PM Michael Giuffrida <[email protected]>
wrote:

> 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.
>

Okay, this change was clearly announced in the blog post for the 1.1
release. My bad! But it would still be nice to have release announcements
mirrored to this list if possible.

https://blog.polymer-project.org/announcements/2015/08/13/1.1-release/


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

Reply via email to