Skip to content
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

Fix for null selectors and respecting specificity. #4

Conversation

ekskimn
Copy link

@ekskimn ekskimn commented Jun 30, 2015

No description provided.

mgonzalez999 and others added 30 commits June 23, 2015 20:57
Renamed some stuff to make it more distinguishable
Feature is deprecated in ruby sass. We may
should print a warning to inform the user.

Fixes sass#1258
Missing implementation for interpolated media queries!
Missing implementation for interpolated namespaces!
Re-armed the error handling and slightly
cleaned up main block parsing function.

Includes hash improvement for list as keys
@mgreter
Copy link
Owner

mgreter commented Jun 30, 2015

Do you have a test case for this?

@ekskimn
Copy link
Author

ekskimn commented Jun 30, 2015

yes, I can provide one. Would you like me to add it to sass-spec?

@mgreter
Copy link
Owner

mgreter commented Jun 30, 2015

Would be great. But please also post it here as I'm currently rebasing the whole PR and would like to test what your commits actually fix.

@mgreter mgreter force-pushed the refactoring/parser-for-3.3 branch 6 times, most recently from bc9de62 to 659e4cb Compare June 30, 2015 22:18
@ekskimn
Copy link
Author

ekskimn commented Jun 30, 2015

.simple {
  a: selector-replace('foo.bar', 'foo', 'foo[baz]');
}

@ekskimn
Copy link
Author

ekskimn commented Jun 30, 2015

expected output:

.simple {
  a: foo.bar[baz]; }

@ekskimn
Copy link
Author

ekskimn commented Jun 30, 2015

Also for the child-selector issue:

foo {
    a:&;
    >bar {
        b:&;
        >baz {
            c:&;
        }
    }
}

expected output:

foo {
  a: foo; }
  foo > bar {
    b: foo > bar; }
    foo > bar > baz {
      c: foo > bar > baz; }

@ekskimn
Copy link
Author

ekskimn commented Jun 30, 2015

ugh...sorry about the formatting....

@mgreter
Copy link
Owner

mgreter commented Jul 1, 2015

I have cherry picked your commits and removed a few more bits!
So please check if this branch still fixes all your issues: sass#1249!
Also please open Bug Report for libsass or a PR for sass-spec with these tests!

Thank you!

@mgreter mgreter force-pushed the refactoring/parser-for-3.3 branch from 95c72c2 to 5776e9b Compare July 1, 2015 00:03
@ekskimn
Copy link
Author

ekskimn commented Jul 1, 2015

yup~! those are my commits~!

issues
sass#1304
sass#1303
created

@mgreter mgreter force-pushed the refactoring/parser-for-3.3 branch 5 times, most recently from a4237dd to 962a45e Compare July 8, 2015 18:14
@mgreter mgreter force-pushed the refactoring/parser-for-3.3 branch 2 times, most recently from 0dccd10 to 3af051e Compare July 13, 2015 13:38
@mgreter mgreter closed this Jul 28, 2015
mgreter added a commit that referenced this pull request Jun 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants