-
Notifications
You must be signed in to change notification settings - Fork 463
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
Indented syntax and quoted @charset 'UTF-8' #845
Comments
Nice catch! test.scss: @charset 'UTF-8';
*{
color: red;
} Produces @charset 'UTF-8'
*
color: red Throws: { status: 1,
file: 'c:/temp/test.sass',
line: 1,
column: 18,
message: 'invalid top-level expression',
code: 1 } @xzyfer, is skipping |
@am11 |
@molily thanks for the bug report we'll aim to fix this in 3.2 |
@xzyfer, few more notes. It turned out the be the issue at sass2scss conversion step. I placed a breakpoint at file.cpp#L282 and here is what I have found: Before ( @charset 'UTF-8'
*
color: red After transform ( @charset 'UTF-8' {}
* {
color: red; } Expected after transform ( @charset 'UTF-8';
* {
color: red; } //cc @mgreter (Disclaimer: I am testing with v3.1.0 not the latest master) |
Any news abut this issue? I'm also stuck |
Thanks a lot for your work. 😆 |
Requires indented syntax support. sass/libsass#845
Requires indented syntax support. sass/libsass#845
When using the indented syntax,
@charset
requires a non-quoted encoding.Fails:
Gives an error “invalid top-level expression”
Full example: https://gist.github.com/molily/1928a48b89c5d793579c (via Node)
Works:
Is this deliberate behavior?
In contrast, Ruby Sass accepts these two forms:
… which is what I would expect.
Did I miss something? Thanks in advance. :)
The text was updated successfully, but these errors were encountered: