-
Notifications
You must be signed in to change notification settings - Fork 89
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
Active passing spec tests after PR 1249 #447
Conversation
Please pull out the failing tests for now. Otherwise 🚢 |
@xzyfer it seems that this CI runs against ruby sass!? That's why it is failing the 3 test cases we already discussed. Or am I seeing ghosts? Not sure how to handle this, but not having any specs because of minor discrepancies is the worst solution IMHO ... and I really don't want to replicate every "broken" behavior of ruby sass in libsass, because libsass IMO produces the correct output! |
Yes this is on purpose. Spec should not fail on Ruby Sass, it would defeat the purpose of a Sass language spec if the reference implementation couldn't pass it.
We discussed leave the failing tests out for now whilst I chase up the Ruby team to address this on their end.
I understand, but Sass is about the Sass language, not LibSass. The goal is for other Sass implementors to be able to run their Sass implementation against sass spec to verify "correctness". Correct is currently defined as doing what Ruby Sass does.
I also agree but we can't change a spec's output for every future implementation's quirks. The long term solution here is to change Sass spec from exact string comparison (it's already does some whitespace normalisation so it's "exact") to semantic comparisons on the output CSS's AST. This has been discuss with the Ruby Sass team and their onboard, it just requires resources. As discussed in Slack, lets leave the failing tests out. We'll try to solve this issues for good. |
I keep hitting close instead of comment. I have butter fingers today. |
In this case we should change ruby spec runner to "normalize" |
It's worth a shot. We need to be really careful with naive replacements so we don't mess with quoted strings and such. To be safe we need to compare AST. I'm trying to get someone from the community to maintain Sass spec and take on these features/issues. |
a313d32
to
e6a1b61
Compare
I just saw that I already implemented something for this case (and it seems I also did it for the ruby spec runner). You actually can add an empty file named |
90c1bfb
to
b42fe29
Compare
Active passing spec tests after PR 1249
Passing quite some spec tests after the big refactoring 🎉
List of fixed open issues:
&
selector interpolation in@at-root
blocks libsass#1043-
libsass#1301