- From: Shaw Jia via GitHub <sysbot+gh@w3.org>
- Date: Mon, 05 Feb 2024 15:59:22 +0000
- To: public-css-archive@w3.org
> But note that `toggle()` resolves depending on the inherited value, and the cascade is based on the flat tree. Presumably, `:nth-descendant()` wouldn't use the flat tree. This was one of the reasons to not deprecate `:focus-within` in #8357 That's something I didn't realize, so `:focus-within` pierces the Shadow DOM while `:focus` does not. Presumably `toggle()` also pierces through the Shadow DOM then? This seems like a rather incidental benefit... I don't think `:focus-within` was designed from the outset to pierce Shadow DOM, it just turned out that way. And the fact that `:has()` does not pierce through Shadow DOM could be an area for improvement (special keyword that adds piercing maybe), but I guess this is going off topic. Ok I've been convinced, I should make this a separate feature request. Should I close this issue and create a new one or edit this one into a feature request instead? -- GitHub Notification of comment by miragecraft Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9899#issuecomment-1927323087 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 15:59:24 UTC