Skip to content

Commit

Permalink
Merge pull request Polymer#574 from h0ru5/patch-1
Browse files Browse the repository at this point in the history
added heads-up for Polymer/polymer#677
  • Loading branch information
Arthur Evans committed Aug 13, 2014
2 parents 3796442 + 573f86d commit a8b8055
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/polymer/styling.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ The veiling process can be used to prevent FOUC at times other than page load. T
<link rel="stylesheet" href="my-element.css">
...
</template>
<script>
Polymer('my-element',...);
</script>
</polymer>

{{site.project_title}} will automatically inline the `my-element.css` stylesheet using a `<style>`:
Expand All @@ -74,8 +77,13 @@ The veiling process can be used to prevent FOUC at times other than page load. T
<style>.../* Styles from my-element.css */...</style>
...
</template>
<script>
Polymer('my-element',...);
</script>
</polymer>

Be careful to put the stylesheet inside the template. We recommend putting the `<script>` tag below the template, especially if you include a stylesheet, however note this is optional otherwise.

## Polyfill CSS selectors {#directives}

When running under the Shadow DOM polyfill, {{site.project_title}} provides special `polyfill-*`
Expand Down

0 comments on commit a8b8055

Please sign in to comment.