Last active
August 29, 2015 14:22
-
-
Save kaelig/cd6d8d263d555bca6cf9 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
// The following code works in Ruby Sass 3.3 and 3.4 | |
// But doesn't work well in LibSass | |
// See https://github.com/sass/libsass/issues/1271 | |
$character-code: f102; | |
test { | |
/* Expected: "\f102" */ | |
/* Sass 3.4 */ | |
content: unquote("\"\\#{$character-code}\""); | |
/* Sass 3.3 */ | |
content: str-slice("\x", 1, 1) + $character-code; | |
/* LibSass (as suggested by Hugo Giraudel) */ | |
content: #{'\"\\' + $character-code + "\""}; | |
} |
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
@charset "UTF-8"; | |
test { | |
/* Expected: "\f102" */ | |
/* Sass 3.4 */ | |
content: \"\\f102\"; | |
/* Sass 3.3 */ | |
content: "xf102"; | |
/* LibSass (as suggested by Hugo Giraudel) */ | |
content: ; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment