- From: Justin Fagnani via GitHub <sysbot+gh@w3.org>
- Date: Fri, 20 Sep 2024 21:45:10 +0000
- To: public-css-archive@w3.org
> both in my and @claviska’s experience building custom elements, the vast majority of use cases we've come across simply required knowing if any nodes were assigned to the slot at all, whether text nodes or anything else. How many of these were for named slots? You can only slot elements into named slots, so `:has-slotted` and `:has-slotted(*)` would be equivalent in those cases. > does a single whitespace text node match `:has-slotted`? It does become slotted, but that’s a footgun in the current design, see https://x.com/LeaVerou/status/1785904086929346957 > Do we reproduce this footgun or break [consistency](https://www.w3.org/TR/design-principles/#consistency)? I think you have to reproduce this behavior. An important aspect to consistency is fallback content. A whitespace text node will prevent fallback content from showing. I don't think we want `:has-slotted` to disagree with fallback. -- GitHub Notification of comment by justinfagnani Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6867#issuecomment-2364659407 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 20 September 2024 21:45:11 UTC