You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just spent way too much time hunting down an error that turned out to be me just typing @extends instead of @extend.
The error message you get when you do this is "nested selectors may not be extended", which had me on a wild goose chase.
On further inspection it turns out that @extend %foo and @extend%foo both work fine and yield the same result, so what @extends %foo was really parsing down to was @extend s %foo.
Is this part of the SASS spec? I think enforcing the whitespace here would be the sane thing to do.
The text was updated successfully, but these errors were encountered:
As you can see, because it says @extends instead of @extend the Ruby Sass parser just leaves the line alone, assuming it's valid CSS. Compiling the same Sass with libsass yields a compiler error for the reasons stated above.
mgreter
added a commit
to mgreter/libsass
that referenced
this issue
Mar 7, 2015
I just spent way too much time hunting down an error that turned out to be me just typing
@extends
instead of@extend
.The error message you get when you do this is "nested selectors may not be extended", which had me on a wild goose chase.
On further inspection it turns out that
@extend %foo
and@extend%foo
both work fine and yield the same result, so what@extends %foo
was really parsing down to was@extend s %foo
.Is this part of the SASS spec? I think enforcing the whitespace here would be the sane thing to do.
The text was updated successfully, but these errors were encountered: