W3C home > Mailing lists > Public > www-style@w3.org > March 2013

Re: [selectors] Matching of :first-child and the like for elements whose parent is not an element

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 20 Mar 2013 12:12:20 -0400
Message-ID: <5149DFE4.8030406@mit.edu>
To: Øyvind Stenhaug <oyvinds@opera.com>
CC: Henrik Andersson <henke@henke37.cjb.net>, www-style@w3.org
On 3/20/13 9:16 AM, Øyvind Stenhaug wrote:
> Not just *, but in general the concept of a "document tree" in CSS is
> that of a tree of elements, which isn't exactly equivalent to the DOM.


> That's why I think it would be confusing to have :first-child etc match
> something that isn't a child in this sense.

Honestly, I think it's really confusing the way it's written right now, 
for the DocumentFragment case.

> (it's not clear to me what exactly the concrete
> use-cases for fragments would be).

Depending on what happens with shadow roots, a concrete use-case may 
well be "sane ability to querySelector your shadow DOM".

Received on Wednesday, 20 March 2013 16:12:53 UTC

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