„Why we don’t have a parent selector” — čtete celé, Jonathan Snook válí!
18. 10. 2010
Descendant selectors like .content .sidebar are problematic because to determine whether it should apply the styles to .sidebar, it has to find .content. Child selectors (Ex. .content > .sidebar) are better than general descendant selectors because the browser only has to check one other element instead of mutiple elements.