Re: [shadow-styling] /shadow vs /shadow-all

On Thu, Mar 6, 2014 at 1:51 PM, Brad Kemper <brad.kemper@gmail.com> wrote:
>> On Mar 5, 2014, at 3:39 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:
>> supporting
>> "foo::shadow > bar" is a substantial burden for us in the short term,
>> as our internal machinery is *not* capable of handling combinators
>> after a pseudo-element right now.
>
> So this selects the bar child of foo, when foo has become a component (meaning its descendants are now only selectable as part of a shadow DOM), right? Foo is in the state of being a shadow root? Sounds like a pseudo class to me.

No.  "foo" has a shadow root.  "foo::shadow" selects that shadow root.
 "foo::shadow > bar" select the bar children of the shadow root.

Elements with shadow roots still have normal children, too.

~TJ

Received on Thursday, 6 March 2014 22:43:21 UTC