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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 1 Dec 2014 14:47:57 -0800
Message-ID: <CAAWBYDBk-EvcSnRxa60+4Z6yNS=vEBvcTHTCY6=7eZzOD-xdNQ@mail.gmail.com>
To: Philip Walton <philip@philipwalton.com>
Cc: Hayato Ito <hayato@google.com>, www-style list <www-style@w3.org>
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 22:48:45 UTC

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