- From: Sebastian Zartner via GitHub <sysbot+gh@w3.org>
- Date: Thu, 05 Nov 2020 20:45:54 +0000
- To: public-css-archive@w3.org
Something that goes into the same direction and I had several use cases over the years is to match something x levels down in the tree structure and you know the exact number of levels. Could that be covered by this, too?
Using @tabatkins' syntax that could be done by `.foo /x/ .bar` where x is the number of levels the right side of the selector is separated from the left part.
So for example, `.wrapper /3/ .child` applied to @radogado's structure
```html
<div class="wrapper">
<div>
<div class="child"> </div>
</div>
<div>
<div>
<div class="child"> </div>
</div>
</div>
</div>
```
would match the latter `<div class="child">` because it's three levels down.
Sebastian
--
GitHub Notification of comment by SebastianZ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4940#issuecomment-722634265 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 5 November 2020 20:45:56 UTC