- From: Shaw Jia via GitHub <sysbot+gh@w3.org>
- Date: Mon, 05 Feb 2024 01:37:19 +0000
- To: public-css-archive@w3.org
> You seem to want the selector variant of the `tree-depth()` function from [#4559 (comment)](https://github.com/w3c/csswg-drafts/issues/4559#issuecomment-562374563). `toggle()` seems something entirely different. Kind of, I think it's better to describe it as a depth version of `:nth-child()` selector (pseudo-class) with all the syntactical sugar associated with it, including the `of` keyword which allow you skip levels. I'd argue it's not something entirely different because it's trying to solve the same problem but with worse ergonomics and limited utility. It's the same as arguing for a hypothetical `toggle-siblings()` function, why implement that instead of the much more powerful `:nth-child()`? -- GitHub Notification of comment by miragecraft Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9899#issuecomment-1926067034 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 5 February 2024 01:37:22 UTC