Skip to content

Instantly share code, notes, and snippets.

@lucyllewy
Created August 14, 2014 22:18
Show Gist options
  • Save lucyllewy/c2e661522b1129905c8c to your computer and use it in GitHub Desktop.
Save lucyllewy/c2e661522b1129905c8c to your computer and use it in GitHub Desktop.
<polymer-element name="style-test" attributes="color" noscript>
<template>
<style>
.styled { color: red; }
.styled:after {
content: "Should be green!";
color: {{color}};
}
</style>
<p class="styled">The following text is red, but:</p>
</template>
</polymer-element>
<style-test color="green"></style-test>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment