[selectors] ::shadow no longer exists? · Issue #7474 · w3c/csswg-drafts (original) (raw)

Comments

@Loirooriol

fantasai added a commit that referenced this issue

Nov 7, 2022

@fantasai

@fantasai

@Loirooriol Fixed by switching to ::slotted. Incidentally, the next example in the section... do you think there's something reasonable we could switch it to, or should I just comment it out?

fantasai added a commit that referenced this issue

Nov 7, 2022

@fantasai

@Loirooriol

So, ::slotted() is an alias for other elements in the tree, and then I guess it makes sense to have internal structure.

But I don't see https://drafts.csswg.org/css-scoping/#slotted-pseudo saying that it has internal structure.

Also, example 8 is still saying mentioning ::shadow:

the selectors div > span and div::shadow ::slotted > span

Also, AFAIK ::slotted is not valid, it should be ::slotted(*) or something.

@fantasai

@Loirooriol Yeah, I realized that ::slotted doesn't currently have internal structure... that's under discussion somewhere I think. So I switched it to be a hypothetical pseudo-element that doesn't exist, since we don't have any examples yet.

But still, that second example, which relies on both ::slotted and ::shadow existing, do I just comment it out or is there some valid useful thing you think we could replace it with?

fantasai added a commit that referenced this issue

Nov 8, 2022

@fantasai

@Loirooriol

If right now there is no pseudo-element with internal structure, then I would comment it out.

tabatkins added a commit that referenced this issue

Dec 9, 2022

@tabatkins

…nternal structure. #7474

@Loirooriol

Maybe even comment out the whole section?

jakearchibald pushed a commit to jakearchibald/csswg-drafts that referenced this issue

Jan 16, 2023

@fantasai @jakearchibald

jakearchibald pushed a commit to jakearchibald/csswg-drafts that referenced this issue

Jan 16, 2023

@fantasai @jakearchibald

jakearchibald pushed a commit to jakearchibald/csswg-drafts that referenced this issue

Jan 16, 2023

@fantasai @jakearchibald

jakearchibald pushed a commit to jakearchibald/csswg-drafts that referenced this issue

Jan 16, 2023

@tabatkins @jakearchibald

2 participants

@fantasai @Loirooriol