W3C home > Mailing lists > Public > www-style@w3.org > December 2014

Re: [css-scoping] should `::content` match both <content> and <shadow> insertion points?

From: Philip Walton <philip@philipwalton.com>
Date: Mon, 1 Dec 2014 15:35:23 -0800
Message-ID: <CAGRhNhU55-t7h-DyYESCR6TA6=o4-8XZ_pigazd3=FiFZhsVfw@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Hayato Ito <hayato@google.com>, www-style list <www-style@w3.org>
Thanks, good to know.

On Mon, Dec 1, 2014 at 2:47 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

> On Fri, Nov 28, 2014 at 5:06 PM, Philip Walton <philip@philipwalton.com>
> wrote:
> > Thanks Hayoto, I didn't realize `content` and `shadow` could be used in
> > selectors. I assumed they were "invisible".
> >
> > However, when trying that I noticed something else. The follow two
> selectors
> > seem to target the same elements, and that seems strange to me:
> >
> > :host::shadow::content > *
> > :host::shadow ::content > *
> >
> > Notice the space (descendant combinator) in the second selector. Based on
> > what you've said about `content::content` and `shadow::content` it
> doesn't
> > seem like the first selector above should match anything, unless
> ::content
> > isn't really a pseudo-element the same way ::shadow, ::before, and
> > ::first-letter are pseudo-elements.
>
> As Hayato-san said, the first one working is a Blink selector-parsing
> bug. Don't pay attention to it. ^_^
>
> ~TJ
>
Received on Monday, 1 December 2014 23:35:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:49 UTC