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: Henrik Andersson <henke@henke37.cjb.net>
Date: Tue, 19 Mar 2013 21:53:18 +0100
Message-ID: <5148D03E.3050005@henke37.cjb.net>
To: Boris Zbarsky <bzbarsky@MIT.EDU>, www-style@w3.org
Boris Zbarsky skriver:
> On 3/19/13 4:07 PM, Daniel Glazman wrote:
>> So we need to deal with Boris's request as an errata, and do a s/some
>> other element/some other node/ in the prose he quoted.
>>
>> About not selecting the root of the document, I don't see that
>> as a bug since the name of the pseudo is first-*child* after all.
> 
> The root element of a document is a child of "some other node": the
> document.  So those two sentences are mutually contradictory.
> 
> I don't have a strong opinion on what behavior we want for the root
> element, but I want us to be consistent about what we want here.  ;)
> 
> -Boris
> 
> 
> 
>

If that is true then this should match:

* html {
 background: red;
}
Received on Tuesday, 19 March 2013 20:53:51 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:07 GMT