Created
August 14, 2014 22:18
-
-
Save lucyllewy/c2e661522b1129905c8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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