- From: Sebastian Zartner via GitHub <noreply@w3.org>
- Date: Wed, 15 Apr 2026 20:32:32 +0000
- To: public-css-archive@w3.org
> > Alternatively, we could define that the different :nth-*() pseudo-classes, when applied to text nodes, only refer to text nodes. So the first text node would then be targeted via p::text:nth-child(1). > > Wouldn't you get that more clearly with `p::text::nth-of-type(1)`? Then you could still use `p::text:nth-child(1)` to mean text that doesn't have some other element before it. Absolutely! That just didn't come to my mind. Thanks for pointing that out, @bradkemper! Sebastian -- GitHub Notification of comment by SebastianZ Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2208#issuecomment-4255262532 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 15 April 2026 20:32:33 UTC