Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Properly parse child selectors in sass-convert #278

Closed
nex3 opened this Issue · 0 comments

1 participant

@nex3
Owner
/* input.css */
a>:first-child {b: c}
a>:last-child {b: d}
// output.scss
a> {
  &:first-child {
    b: c;
  }
  &:last-child {
    b: d;
  }
}
// expected.scss
a > {
  :first-child {
    b: c;
  }
  :last-child {
    b: d;
  }
}

The a>:foo selector isn't parsed fully enough to determine that > is a combinator. We should actually parse it rather than treating it as a string.

@nex3 nex3 closed this issue from a commit
@nex3 nex3 Properly parse selectors in css2sass.
Closes #281
Closes #278
1cbf18c
@nex3 nex3 closed this in 1cbf18c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.