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

@LeaVerou 

```pcss
.container {
 & .widget {
  @nest .container.selected & {
   /* FAIL, gets rewritten to .container.selected .container .widget, 
      not .container.selected .widget */
  }
 } 
}
```

Doesn't that get rewritten to this :

```css
.container.selected :is(.container .widget)
```

Which would actually match this :

```html
<div class="container selected">
  <div class="widget">
```

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


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

Received on Sunday, 23 January 2022 11:52:26 UTC