Re: [csswg-drafts] [css-nesting] :selector-replace() pseudo-class function (#6330)

I guess a possible problem is if you have

```html
<div class="foo"><div class="bar"><div class="foo"><p>Foo</p></div></div></div>
```
```css
.foo => &(foo) {
  & .bar {
    & p {
      @nest &(foo):focus & {}
    }
  }
}
```

Then this will be like `.foo:focus :is(.foo .bar p)`, meaning that it will match if e.g. the focus is on the inner `.foo`, but the author may want the focus to be on the `.foo` that contains the `.bar`.

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


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

Received on Tuesday, 1 June 2021 17:40:47 UTC