MoOx / postcss-cssnext

`postcss-cssnext` has been deprecated in favor of `postcss-preset-env`.
https://moox.io/blog/deprecating-cssnext/
MIT License
5.3k stars 188 forks source link

Concatenating selector name with nesting seems no longer working #421

Closed japboy closed 6 years ago

japboy commented 6 years ago

i think this was possible until updating to postcss 6 & cssnext 3. but it doesnt get transpiled properly anymore. is this known issue?

.another_class {
  color: green;

  &_emphasized {
    color: red;
    font-weight: bolder;
  }
}

/* .after transpiled to css (with postcss 5.x & cssnext 2.x) */

.another_class {
  color: green;
}

.another_class_emphasized {
  color: red;
  font-weight: bolder;
}

any helps would be appreciated. thanks.

MoOx commented 6 years ago

It was a bug. It's not allowed per spec. See precss for this kind of thing.