[css3-selectors] Structural pseudo-classes and the root element.

Hi,

Can the root element ever match structural pseudo-classes other than 
:root and :empty?

Namely, :nth-child, :nth-last-child, :nth-of-type, :nth-last-of-type, 
:first-child, :last-child, :first-of-type, :last-of-type, :only-child 
and :only-of-type are all based on the element having a parent. The root 
element is the only one without a parent, so I guess none of these 
pseudo-classes apply. But I don’t find this very clear in the spec.

Regards,
-- 
Simon Sapin

Received on Wednesday, 13 June 2012 15:22:34 UTC