nth-child is weird

I ran into a CSS bug today and it brought up an interesting (and important) question: What's the difference between nth-child and nth-of-type? Comparing two things »