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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 28 Mar 2013 14:51:57 -0700
Message-ID: <CAAWBYDBMwjV0VzDRryh789UTMVvC52OBfrsvH5Rt0UiQqgQG3Q@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: www-style list <www-style@w3.org>
On Thu, Mar 28, 2013 at 2:44 PM, fantasai <fantasai.lists@inkedblade.net> wrote:
> On 03/27/2013 09:37 AM, fantasai wrote:
>> On 03/27/2013 08:25 AM, Tab Atkins Jr. wrote:
>>> The issue with that is that we run into the exact same problem with
>>> ::shadow() - if you want to select only the top-level elements inside
>>> of a shadow root, what selector do you use?  Do we invent *another*
>>> pseudoclass that's identical except for the name?
>>
>> So I think you should come up with a different solution to this.
>
> I thought we had talked about this exact use case before, actually,
> and were planning to use scope-relative selectors to solve it.
> So
>
>   ::distributed(> li)
>
> would select all <li> elements immediately a child of the insertion point.
> I think this makes the most sense.

I'm okay with doing this too.

Note, though, that the objection in your previous email doesn't apply,
as a naked :root selector anywhere won't apply to distributed elements
- the "root" elements showing up in a ::distributed() pseudo are only
root *in that context specifically*.

~TJ
Received on Thursday, 28 March 2013 21:52:45 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 28 March 2013 21:52:46 UTC