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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 2 Apr 2013 18:13:30 -0700
Message-ID: <CAAWBYDCauy4bhTYSRsU-HmBdC=m6Mndu=p-zijgbAAxbwDkbMg@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: www-style list <www-style@w3.org>
On Tue, Apr 2, 2013 at 5:16 PM, fantasai <fantasai.lists@inkedblade.net> wrote:
> On 04/02/2013 05:01 PM, Tab Atkins Jr. wrote:
>>
>> On Tue, Apr 2, 2013 at 3:01 PM, Dimitri Glazkov <dglazkov@google.com>
>> wrote:
>>>
>>> Using scope-relative approach (which I love), what does
>>> ::distributed(:scope) represent?
>>
>>
>> Nothing.  The scope element is a theoretical construct here
>> representing a container for all the distributed elements, not a real
>> element that you can do something with.
>
>
> This makes sense to me, but the key question here is:
>
>   ::distributed(:first-child)
>
> Does that select the first element distributed to that distribution point,
> or the first of its siblings?

It's the same as ::distributed(:scope > :first-child), so the first element.

(Did you mean "first of its children"?)

~TJ
Received on Wednesday, 3 April 2013 01:14:17 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 3 April 2013 01:14:18 UTC