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

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 UTC