Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the <style> into the <template>
Having the CSS outside of the template makes polymer/webcomponents? insert the style without any scoping into the final document, which can cause style leakage. Polymer 1.x deprecated this already: > Prior to Polymer 1.1, the recommendation was to place <style> tags inside the <dom-module> for an element (but outside the <template>). This is still supported, but is no longer recommended. (https://www.polymer-project.org/1.0/docs/devguide/styling) Polymer 2.0 will no longer support this according to https://www.polymer-project.org/2.0/docs/upgrade#dom-template. See also: Polymer/polymer#3665 See also: googlearchive/polylint#132
- Loading branch information