csstools / postcss-nesting

Nest style rules inside each other

Home Page:https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-nesting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does it support `& > .foo` ?

xcatliu opened this issue · comments

In the spec, this should be supported:

.foo {
  color: blue;
  & > .bar { color: red; }
}
/* equivalent to
   .foo { color: blue; }
   .foo > .bar { color: red; }
 */

But I tried this plugin, it's not supported.

Hey there! I’m sorry you’re having this issue. That syntax is totally supported. Try it out at http://jonathantneal.github.io/postcss-nesting/

I just did. It worked as you expected. Could you tell me more about the issue? I’m closing it because I’ve verified this is working, but I’m still happy to try to help you get things going.

Sorry for the disturbing. I can't repro the issue now. This is probably my mistake.
Anyway, thanks for your awesome project!