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

Well but sadly in that case it’s kind of useless, you could simply write that with existing syntax:
```css
.foo {
  & .bar {
    & p {
      @nest .foo:focus & {}
    }
  }
}
```
is equivalent to
```css
.foo:focus .foo .bar p {}
```
This is prepending to `&`, but this issue is all about modifying `&` or rather inserting into `&`. So I’m looking for a way to achieve `.foo:focus .bar p` or `.foo :focus .bar p` 

-- 
GitHub Notification of comment by flachware
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6330#issuecomment-852331243 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:56:49 UTC