Re: [csswg-drafts] [css-pseudo-5] ::text / ::text-node pseudoelement (#2208)

> 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. 

-- 
GitHub Notification of comment by bradkemper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2208#issuecomment-4252376464 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 13:15:12 UTC