CSS: does this "ul> li" make it faster than "ul li"?
You must very seriously review the rumor to the people who tell you this.
At best, the difference is very small. No one should waste time, energy or brain, given such things. This is not a very useful optimization. Do not fall into the trap of premature optimization, especially for a dynamic language such as HTML / CSS.
, , , - .ul > li , ul li, . , . .
?
, > , IE6 - , . ; , , , , .
?
. , IE6 > , , , >, :
<section class="slide">
<div>
<span></span> <!-- [1] -->
<div>
<span></span> <!-- [2] -->
</div>
</div>
<div>
<p>
<span></span> <!-- [3] -->
</p>
</div>
</section>
, :
spandiv,slide.spandiv,div.div/.slide..slidespan. , , , , ..slide:hover div spanspandiv,divdiv,slide. .div, ,.slide. , -.slide( - )..slidespan. , , ..slide:hover div spanspanp,div. ; .span, ,div,.slide..slidespan. , , .
Last: in all three scenarios, you will find that the rules apply only to the second selector. This is pure coincidence ; the differences in how supporting browsers look for elements to match are still real.