W3C home > Mailing lists > Public > www-style@w3.org > March 2013

Re: [shadowdom]: Using :root to specify the insertion point in ::distributed

From: Hayato Ito <hayato@google.com>
Date: Wed, 27 Mar 2013 12:55:47 +0900
Message-ID: <CAFpjS_1BDRC63r=wnb8PJ66CeKHfJgB8jvcbYhMMEepFuUbofQ@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Dimitri Glazkov <dglazkov@google.com>, "www-style@w3.org" <www-style@w3.org>, Steve Orvell <sorvell@google.com>
I have one concern for the naming of ':root'.

I am afraid that It might be misleading that ':root' matches
'top-level elements in the distributed set' rather than 'insertion
point' itself.
There are multiple such roots. That's not intuitive for me. ':root' is
likely to imply 'insertion point' itself because it's *root* of such
elements.

So instead of reusing ':root' in this context, how about having a more
intuitive name, like ':child-of-shadow-host' or something?

On Wed, Mar 27, 2013 at 11:12 AM, Hayato Ito <hayato@google.com> wrote:
> On Wed, Mar 27, 2013 at 2:18 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>> Whoops, Hayato-san pointed out something I didn't realize.
>>
>> On Mon, Mar 25, 2013 at 11:39 AM, Dimitri Glazkov <dglazkov@google.com> wrote:
>>> It seems that we need a way to refer to the insertion point itself in
>>> the selector. Tab suggested using ":root":
>>>
>>> ::distributed(:root>*)
>>
>> I didn't mean to suggest this.  My suggestion was that :root match all
>> the top-level elements in the distributed set, so if you wanted to
>> select only the elements that were distributed, but not their
>> descendants, you'd write ::distributed(:root) and be done.
>
> Thank you for the explanation! That makes sense. I don't have any
> objections to that.
>
>
>
> --
> Hayato



-- 
Hayato
Received on Wednesday, 27 March 2013 03:56:36 GMT

This archive was generated by hypermail 2.3.1 : Wednesday, 27 March 2013 03:56:37 GMT