Created
February 14, 2014 04:14
-
-
Save hail2u/8995677 to your computer and use it in GitHub Desktop.
Sassの変数名において_と-が同一視される問題について。
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
.test-foo-bar { | |
content: "foo_bar"; } | |
.test-foo_bar { | |
content: "foo_bar"; } |
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
$foo-bar: "foo-bar"; | |
$foo_bar: "foo_bar"; | |
.test-foo-bar { | |
content: $foo-bar; | |
} | |
.test-foo_bar { | |
content: $foo_bar; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sass/sass#1114
https://github.com/nex3/sass/blob/stable/doc-src/SASS_CHANGELOG.md#variable-and-mixin-names
仕様らしい。