postcss / postcss-nested

PostCSS plugin to unwrap nested rules like how Sass does it.
MIT License
1.15k stars 66 forks source link

Cannot handle chained css #65

Closed sekoyo closed 7 years ago

sekoyo commented 7 years ago

Hi,

Thanks for this plugin. I noticed it doesn't handled chained CSS though:

.myclass {
  &-something1.&-something2 {
    background-color: blue;
  }
}

In this codepen demo the background should be blue but the second selector won't work:

https://codepen.io/ferahl/pen/VzrqeM

sekoyo commented 7 years ago

Nvm it works if I remove the second .