Closed emagnier closed 10 years ago
I'm trying to compile inuit.css
(a great OOCSS framework) with Libsass, but it also block on this kind of code:
$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:
$ sassc <<< '.émotion {color: red}'
:1: error: invalid top-level expression
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. Except this:
[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: »;
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