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

@contentfree `a ::text` means `a *::text`, i.e. the `text` pseudo-element originated by an element which is a descendant of `a`. And `i.fa + ::text` means `i.fa + *::text`, i.e. the `text` pseudo-element originated by the next sibling element of `i.fa`.

So with this proposal you would actually need `a::text { display: none }`, and can't do different things for text nodes that precede or follow `i.fa`.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2208#issuecomment-1889111139 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 12 January 2024 12:51:16 UTC