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

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