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

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