Re: [csswg-drafts] [css-values-5] allow specifying flat vs light tree in `sibling-index()` and `sibling-count()` (#9562)

The current spec saying that `sibling-index()` / `sibling-count()` follows the flat tree means it will not correspond with the `:nth-*` selectors for slotted elements. Is that a behavior we want in the default case? I lean towards having the flat-tree counting as an option.

There is a note in the spec that these function may be extended to accept `of <selector>`, which would not work on the flat tree. It would be confusing to have a single function work both on flat tree and not at the same time?



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


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

Received on Monday, 18 November 2024 11:54:36 UTC