W3C home > Mailing lists > Public > www-style@w3.org > April 2015

Re: :host pseudo-class

From: Anne van Kesteren <annevk@annevk.nl>
Date: Mon, 27 Apr 2015 05:26:17 +0200
Message-ID: <CADnb78jL7x9szmS9s-xRfSh5A3RMSczfcTN4pEXhNNuNMSCxkg@mail.gmail.com>
To: lists@novalistic.com
Cc: "www-style@w3.org" <www-style@w3.org>, "L. David Baron" <dbaron@dbaron.org>, WebApps WG <public-webapps@w3.org>
On Sat, Apr 25, 2015 at 8:59 PM, Daniel Tan <lists@novalistic.com> wrote:
> My guess is it's because a shadow host element is an element, not a
> pseudo-element.

I think a pseudo-element makes more sense as it represents an
element/box not accessible within the tree, whereas a pseudo-class
represents an element/box with an internal flag set accessible within
the tree.

Potentially we could have a new kind of selector representing an
actual element not accessible within the tree, but browser vendors by
and large have decided to use pseudo-elements, e.g.

> Does the following note in css-scoping 3.1.1 answer your question?


Received on Monday, 27 April 2015 03:26:41 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:50 UTC