:first-child isn't

It's really first sibling. It isn't used on the element that has the children.

And it only counts if the first sibling happens to be the kind of element that the :first-child pseudo-class has been added to.

So blorf:first-child selects all the blorf elements which are first among their siblings.


Comments

Popular posts from this blog

Callback, Promise, Observable, and Doughnuts

Learn grid and grid-template-areas FIRST!!!

The Day TDD Started Working for Me