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

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

From: François REMY <francois.remy.dev@outlook.com>
Date: Sun, 8 Jun 2014 15:29:41 +0200
Message-ID: <DUB130-DS2306C372651767769E47D1A52E0@phx.gbl>
To: "fantasai" <fantasai.lists@inkedblade.net>, <www-style@w3.org>
> Been reading through the ShadowDOM naming discussions, and it occurred
> to me that, for the purpose of aligning the vocabulary more strongly,
> it might be a good idea to rename :host to :shadow-root and :host-context
> to :shadow-context.
>
> This gives us some nice parallels:
>    :shadow-root is like :root
>    :shadow-context() is like :scope-context() (if we go with 
> :scope-context)
>
> and it also creates a closer tie among all the shadow-related pseudos,
>
>    ::shadow
>    :shadow-root
>    :shadow-context
>    ::light-content (or maybe ::shadow-projected as a third idea)
>
> It reduces the author-exposed vocabulary, like dbaron wanted.

Fwiw, I like the idea. 
Received on Sunday, 8 June 2014 13:30:09 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:22 UTC