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

:host pseudo-class

From: Anne van Kesteren <annevk@annevk.nl>
Date: Sat, 25 Apr 2015 09:32:17 -0700
Message-ID: <CADnb78hhgX9AvXULmnEs3A-9HCmYGeTXOAoxAey3i55_28KQVA@mail.gmail.com>
To: "www-style@w3.org" <www-style@w3.org>, "L. David Baron" <dbaron@dbaron.org>
Cc: WebApps WG <public-webapps@w3.org>
I don't understand why :host is a pseudo-class rather than a
pseudo-element. My mental model of a pseudo-class is that it allows
you to match an element based on a boolean internal slot of that
element. :host is not that since e.g. * does not match :host as I
understand it. That seems super weird. Why not just use ::host?

Copying WebApps since this affects everyone caring about Shadow DOM.


-- 
https://annevankesteren.nl/
Received on Saturday, 25 April 2015 16:32:40 UTC

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