Re: [shadow-styling] Which node the :ancestor selector matches

On Mon, Mar 24, 2014 at 5:59 AM, Bjoern Hoehrmann <derhoermi@gmx.net> wrote:
> * Tab Atkins Jr. wrote:
>>On Mon, Mar 17, 2014 at 8:07 AM, Rune Lillesveen <rune@opera.com> wrote:
>>> The text in [1] is at best unclear about the fact that :ancestor
>>> actually selects the shadow host and not the ancestor matching the
>>> compound selector inside the pseudo function. I was confused about the
>>> meaning of :ancestor until I read [2] which is very clear about it:
>>>
>>> "The selector :ancestor(<selector>) matches the host element if it or
>>> any of its ancestors matches <selector>."
>>>
>>> Could the spec say something like that, given that it's correct?
>>
>>While I didn't edit it specifically in response to this email, the
>>spec currently has a definition almost identical to what you proposed,
>>so I'm gonna consider this fixed.  ^_^
>><Received on Monday, 24 March 2014 16:56:36 UTC

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant