Skip to content

Instantly share code, notes, and snippets.

@kaelig
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaelig/cd6d8d263d555bca6cf9 to your computer and use it in GitHub Desktop.
Save kaelig/cd6d8d263d555bca6cf9 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// 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 + "\""};
}
@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