CSS child vs descendent selector

Viewed 2742

I read that using the child selector (>) in css is faster than the descendant selector (). For example: p > em as opposed to p em.

It seems to me that the majority of code I see in the wild does not take advantage of this.

I understand that certain circumstances would merit the use of one or the other, but in general, Should I be striving to take advantage of the child selector whenever possible? Or should I follow what seems to be convention and rely mostly on the descendent selector?

1 Answers
Related