- From: flachware via GitHub <sysbot+gh@w3.org>
- Date: Tue, 01 Jun 2021 16:45:57 +0000
- To: public-css-archive@w3.org
I actually don’t necessarily want to replace parts of the parent selectors either, but I’d like to be able to insert arbitrary modifications. Would your proposed approach allow something like this:
```css
.foo => &(foo) {
& .bar {
& .baz {
@nest &(foo) .qux.active & {}
}
}
}
```
as an equivalent to this?
```css
.foo .qux.active .bar .baz {}
```
I’m not sure about the `&(foo)` syntax though, I think the `&` should be used consistently as a representation for the parent selectors only.
--
GitHub Notification of comment by flachware
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6330#issuecomment-852278732 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 16:46:49 UTC