-
Notifications
You must be signed in to change notification settings - Fork 464
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
All interpolation is unquoted #1647
Comments
Do I understand correctly, that At least the example you gave seems to work correctly 😕 ?? @foo directive {
.foo {
foo-prop: foo-val; } } |
@mgreter I think maybe you misunderstand the |
I'm fairly certain that all interpolation removes quotes. But we can double check with @nex3. |
OK, this perfectly matches the |
@mgreter I dunno. I saw a patch that had specific handling for selectors. It may be that you now have point fixes in all the right places and can just refactor that now. Also: There's a change coming to interpolation in Sass 4.0 so it may not be worth it to refactor something that's about to change considerably. See sass/sass#1778 for more info. |
Yep, we are aware of that! And thanks for the background info on quote/unquote, that was new to me and also a bit counter intuitive IMO! |
I think there is something to be done here. We need to make sure in Eval that String_Schema and Selector_Schema always remove quotes from interpolants. This clearly isn't happening hence by hacky patch. At the time I was under the wrong impression that interpolants always resulted in quoted strings, and that selectors were a special case. It's clear that I was incorrect. |
As part of this fix #1633 should be reverted. |
any news on the matter ? |
@mlarcher not yet. We welcome small, isolated test cases that show where we fail to respect this rule. |
Here is what is generating the problem in my context:
resulting in
instead of the expected (and previously fine until 3.4)
|
Reduced test case
|
This PR add specs for sass/libsass#1647
Created sass/sass-spec#646 to track cases where we know we're currently failing to unquote interpolation. The coverage could be expanded if someone as willing to take that task on. |
All specs have been activated so it looks like this is passing! |
The fix #1633 only unqoutes interpolation in selectors. This is incorrect. Interpolation always unquotes.
Ruby sass:
output:
The text was updated successfully, but these errors were encountered: