- From: Jonathan Neal via GitHub <sysbot+gh@w3.org>
- Date: Tue, 11 Oct 2022 03:18:09 +0000
- To: public-css-archive@w3.org
This selector would have been useful to me when targeting slotted text nodes, created either from implicit `<slot>` elements, or created from programatic, manual slot assignments. The CSS `::slotted(*)` selector does not currently select text nodes. I would also like to point out some prior art. At the time of this writing, other fully or partially shipping CSS text selections or text-capable selections include the CSS `::first-letter`, `::first-line`, `::selection`, `::target-text`, `::spelling-error`, `::grammar-error`, `::before`, and `::after` pseudo element selectors. As a related aside, `::slotted(*)::before` and `::slotted(*)::after` can be used to target generated, slotted ‘before’ and ‘after’ text content. I am a little confused as to why the `::before` or `::after` selector comes _after_ the `::slotted` selector rather than _inside_ of it. I could imagine that raises some parity issues for something like `::slotted(::text)` or even `::slotted(::first-letter)`, as either those selectors may include `::before` content. -- GitHub Notification of comment by jonathantneal Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2208#issuecomment-1274033905 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 11 October 2022 03:18:10 UTC