Re: [csswg-drafts] [css-nesting] selecting grandparent selector with @nest (#6977)

Maybe the previous 'lucky' behaviour of postcss-nesting, would be simpliest to implement spec-wise, `&` with space equals `.a :not(.c) .b` and without space `.a:not(.c) .b`

```css
.a {
  & .b {
    @nest :not(.c)& {
      color: red
    }
  }
}

.a:not(.c) .b {
      color: red
}
```

But I agree that  `&<something>` approach looks good to.

-- 
GitHub Notification of comment by lubomirblazekcz
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6977#issuecomment-1024232921 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 28 January 2022 13:36:48 UTC