[selectors] Sp?ecificity of :nth-child() and :nth-last-child() with a selector list

Hi,

Currently, :nth-child(An+B of selector) has the same specificity has :nth-child() (0, 1, 0).

Given the new definition of :nth-child(An+B of selector) must match selector on the current element, I believe it would make sense to include the specificity of the nested selector in the specificity of :nth-child() and :nth-last-child().

For example:
	:nth-child(odd of #WebKit)
would have (1, 1, 0).

Benjamin

Received on Friday, 31 October 2014 19:39:04 UTC