Created
December 17, 2013 21:41
-
-
Save chriseppstein/8013073 to your computer and use it in GitHub Desktop.
css is not order dependent.
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
:root { | |
var-grid-width: 20px; | |
} | |
div[class*="span-"] { | |
float: left; | |
} | |
div.span-5 { | |
/* This should be 50px because the var-grid-width below should override the value above. */ | |
width: calc(var(grid-width) * 5); | |
} | |
:root { | |
var-grid-width: 10px; | |
} |
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
div[class*="span-"] { | |
float: left; | |
} | |
div.span-5 { | |
/* This should be 50px because the var-grid-width below should override the value above. */ | |
width: 100px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fyi, this is has been fixed (but I think you already know that).