W3C home > Mailing lists > Public > www-style@w3.org > June 2014

Re: [css-scoping] Renaming :host and :host-context

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 9 Jun 2014 10:13:39 -0700
Message-ID: <CAAWBYDCEBMgGdB===cFWktZfMEm5NXd2_=rA5HxPZSbPLkX=2Q@mail.gmail.com>
To: Daniel Freedman <dfreedm@google.com>
Cc: fantasai <fantasai.lists@inkedblade.net>, www-style list <www-style@w3.org>
On Sun, Jun 8, 2014 at 4:45 PM, Daniel Freedman <dfreedm@google.com> wrote:
> I don't think this would be a positive change. :host refers to the host
> element, not the shadow root itself. A rename to :shadow-root would be
> conceptually incorrect.
> The same argument applies to :host-context.

This. I am absolutely opposed to :shadow-root for this reason, because
it's simply wrong.  It only "reduces author-exposed vocabulary" by
incorrectly folding distinct terms together.

> As a more practical point, :host is the only way to affect styling on the
> host element independent of selector identity, and as such will be used by
> developers in practically every root.
> Making that name longer for the sake of "alignment" is a disservice to
> developers.

And this as well.  Length is an important consideration when something
is going to be used a lot.

Received on Monday, 9 June 2014 17:14:26 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:43 UTC