Created
June 9, 2015 00:24
-
-
Save sparkofreason/164d7e9a7c4cad833662 to your computer and use it in GitHub Desktop.
Exception when using GSS with Polymer elements
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="import" href="/paper-slider/paper-slider.html"> | |
</head> | |
<body> | |
<div> | |
<style type="text/gss"> | |
#d1 { | |
width: == $my-width; | |
height: == $my-height; | |
} | |
#d2 { | |
width: == $my-width; | |
height: == $my-height; | |
}; | |
#d1[right] == #d2[left]; | |
#d1[bottom] == #d2[top]; | |
#d1[top] == #slider[bottom]; | |
</style> | |
<paper-slider id="slider"></paper-slider> | |
<div id="d1" style="background-color: red;"></div> | |
<div id="d2" style="background-color: green;"></div> | |
</div> | |
<script src="/gss/dist/gss.js"></script> | |
<script type="text/javascript"> | |
window.engine = new GSS(document, {"my-width": 200, "my-height": 200}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment