-
Notifications
You must be signed in to change notification settings - Fork 465
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
Interpolation Issue - Combining Values #442
Comments
Yeah definitely looks like an issue with interpolation. |
Thanks for taking the time to look Hampton Inn & Suites ;) 🍻 |
I'm in the process of writing a test and put the code into a gist: (That should be using Sass 3.4) Is that the desired interpolation behaviour? I can see how the libsass result:
is not correct. However, I guess I'd expect Sass 3.4 to give a result closer to
|
@malrase Results have a separation. I get this reported to me via libsass users… |
Ah! I see what you mean. It's difficult to test right now, unfortunately. http://sassmeister.com/gist/7b8f1f58a2b356aac923 The above will be the test when we can test it. @hcatlin can you remove the "needs test" tag from this while we get it sorted out. |
I've moved this to 3.2 because it's appears to be non-insignificant fix and 3.1 is just about ready for release. |
Adding to the discussion: appending a unit as a string is a very poor way of converting a unitless number to a length since it results in having a |
IMHO this is a pretty difficult issue since it involes input:
output:
debug_ast:
As you can see this gets parsed as a space separated list, and that's the reason why it fails! IMHO this needs to be parsed and render completely different, so this doesn't look like an easy fix! Also consider this example: input.scss
ruby sass output:
libsass output:
The differences are very subtile and I have no idea yet what the actual rule behind it is (and if it actually makes sense or if it should be considered a ruby sass bug). |
Agreed I've looked into this a couple times and it's non trivial. Ruby Sass handles this my having a separate SassScript parser. I also think our approach to "everything is a list" is a bit overzealous and is the cause some tricky bugs. |
IMO we should re-scope this to Milestone 3.3 |
👍
|
I have a user on my project that filed an issue in regards to interpolation using libsass w/gulpsass so I'm curious if this is a bug within libsass' interpolation as the current method I use works just fine according to the docs and compiling with Ruby.
Here's the code that seems to be the problem…
As you can see the commented lines were the original lines that worked just fine when compiling with Ruby otherwise libsass was giving this
font-size: 32 rem
as a result.The text was updated successfully, but these errors were encountered: