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

@mauriciogior No, adding `::text` shouldn't break existing combinators or selectors, they would continue to skip text nodes

```html
<p class="message">                   <!-- p -->
  Hi there                            <!-- p::text -->
  <span class="emoji-native" id="1">  <!-- p > :nth-child(1) -->
    😋                                <!-- p > :nth-child(1)::text -->
  </span>
  this is cool!                       <!-- p::text -->
  <span class="emoji-native" id="2">  <!-- p > :nth-child(2) -->
    😍                                <!-- p > :nth-child(2)::text -->
  </span>
  <span class="emoji-native" id="3">  <!-- p > :nth-child(3) -->
    😍                                <!-- p > :nth-child(3)::text -->
  </span>
</p>
```
If what you want is selecting a `.emoji-native` whose previous sibling node (including text) is a `.emoji-native` element, then I don't think that's covered by this feature. You would need a new kind of combinator.

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


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

Received on Monday, 28 June 2021 18:58:54 UTC