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
{{ message }}
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
I was testing out my grid generator file in sassmeister with libsass 3.0.1 and I get Invalid property name errors. The line numbers seem way off where the problem is, maybe from loops, so I haven't had much luck reducing it down.
I know it doesn't like .#{$namespace}--1,
I haven't been able to test in 3.0.2, I'm not really sure how to do that.
Activity
xzyfer commentedon Nov 14, 2014
I managed to reduce the test case down to what's causing the issue and it's exactly as you pointed out.
Looks like
<interpolant>--<number>isn't handled correctly.matthewlein commentedon Nov 14, 2014
Great. Thanks for doing that.
xzyfer commentedon Nov 14, 2014
Thanks for reporting this!
Could you please add a spec in https://github.com/sass/sass-spec ?
Here's an example of a good spec PR for reference https://github.com/sass/sass-spec/pull/89/files
matthewlein commentedon Nov 16, 2014
Here you go sass/sass-spec#135
If you need anything else on that, let me know.
While digging in it a little, I found that interestingly, this works just fine:
When it interpolates the number from the loop var, it has no problem.
matthewlein commentedon Nov 16, 2014
.#{"foo"}--#{'1'} { width:100%; }is probably a simpler way of saying that. :)This works fine, and might be a workaround for me for now.
xzyfer commentedon Nov 16, 2014
Makes sense. Interpolations (
#{}) and numbers are treated differently. Thanks for this, I'll dig into it.