Re: :host pseudo-class

On Thu, Apr 30, 2015 at 10:25 PM, Anne van Kesteren <annevk@annevk.nl>
wrote:

> ...
>
> >> My problem is not with the ability to address the host element, but by
> >> addressing it through a pseudo-class, which has so far only been used
> >> for matching elements in the tree that have a particular internal
> >> slot.
> >
> > I don't understand what distinction you're trying to draw here.  Can
> > you elaborate?
>
> A pseudo-class selector is like a class selector. You match an element
> based on a particular trait it has. Your suggestion for :host()
> however is to make it match an element that cannot otherwise be
> matched. That's vastly different semantics
>

That's still true if you use ::host, what is the thing on the left hand
side the ::host lives on? I'm not aware of any pseudo element that's not
connected to another element such that you couldn't write {thing}::pseudo.

- E

Received on Friday, 1 May 2015 05:41:02 UTC