You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a conflict when a pseudo-element is also a full fledged element. For example,
slot::slotted(*) {
z-index:sibling-index();
}
should probably use the index of the slotted elements, not the index of the slot where they are slotted.
Even in more normal cases like ::after, I tend to think authors would prefer sibling-index() to be the number of children of the originating element + 1 rather than the index of the originating element. Though this seems complex in general, so rather than providing a surprising value, it's probably better to handle it as an error just like #9572 will handle non-matching elements.
That is, we would default sibling-index() to use a *|* selector, and then when used on an ::after, it won't match, so just treat this consistently with #9572. But sibling-index(::after) would match, so we would get 1. For simplicity, I guess we could say that pseudo-elements that aren't full fledged elements aren't considered to have siblings.