-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS escapes #102
Comments
I'm trying to compile $open-quote: \201C;
$close-quote: \201D; |
According to the CSS 2.1 grammar spec, literal, UTF-8 encoded characters ("nonascii") are valid in selectors too but that also causes an error in libsass:
|
I've added some backslash handling to the refactor branch ... I'll make sure it works with your examples and merge it during the coming week. |
Just for the follow up, all examples listed above works now. [data-icon='test-1']:before {
content:'\\';
}
[data-icon='test-2']:before {
content:'\'';
}
[data-icon='test-3']:before {
content:"\"";
} |
Hmm, looks like I need to futz with the string matcher ... thanks for checking! |
FYI this code also doesn't work: $open-quote: «;
$close-quote: »; |
Properly handle escaped quotes. Fixes #102
Thanks! |
I'm using the font-icons method (via the
@media
rule) which display a specific character (the icon) via the CSScontent
property in a pseudo class (:before
/:after
).For some special characters my tool adds a backslash before it, which is valid and compiles well with the official ruby compiler:
But with Libsass I get this error message:
error reading values after '\\';
I also made a search about this and discovered the CSS escape can be use in the selectors:
These selectors represent the word
émotion
andédition
.More details here: http://www.w3.org/International/questions/qa-escapes
The text was updated successfully, but these errors were encountered: