Re: [csswg-drafts] [css-values] Proposal: `descendant-count()` function (#11069)

> How does this work with shadow DOM / slotted content?

That's a good question, but, I guess, this is probably something to discuss in https://github.com/w3c/csswg-drafts/issues/9572, as I can see it as a more general issue? It would need to work consistently with it, but I can see how this can be a complex issue, as I don't think we handled inside _values_ before, so it is tricky to define how they should work across boundaries.

Like, my first intuition is to make it work the same other selectors work: if it is defined in the light DOM, then it should only select light DOM stuff, and vice versa. But that means that the selector itself will need to somehow be coupled with its origin, as the value itself could be inherited across the boundaries.

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


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

Received on Wednesday, 23 October 2024 07:52:53 UTC