I remember watching a video a while back online that was a talk given by an engineer at Yahoo and in it he mentioned that CSS selectors are read, by the browser, right to left and not left to right. Meaning #body .header .links a
would actually pull out all anchors on the page filtering those with a parent of class links
that had a parent of class header
that had a parent with id body
.
I can't find the video and was wondering if anyone has any references to reinforce this or is it not correct? Wouldn't this mean that something like #body .header .links li a
is actually slower than just saying #body .links a
? Assuming both work on a given page.