header is the first child, there is no .bg_black element that is the first child, so there are no matches for your selector. Pseudo selectors just check if some extra constraint is met, it selects the .bg_black elements first, and then checks if it's a first child.
http://www.w3.org/TR/css3-selectors/#first-child-pseudo On Tue, Apr 17, 2012 at 3:16 PM, hamburger <bilidi...@web.de> wrote: > Hello I have a problem to find: > $$('.bg_black:first-child') > > Here is my sample-code. > http://jsfiddle.net/hnh45/1/ > > If you remove the <header> it works fine > > Is this an issue? > > cheers >