Re:A modern responsive front-end framework based on Material...
by drinchev on Friday April 24, 2015 @12:42PM
(#9434436)
Yeah, sorry for the mistake. Yes, you are right in this case bad code would look like :
<ul class='collection'>
<li>
Is red
<ul class='collection'>
<li class='collection-special'>Should be blue</li>
</ul>
</li>
</ul>
.collection > li { color: red; }
.collection-special { color: blue; }
http://jsbin.com/tulenoxutu/1/edit?html,css,output
As to this specific case, though, I was surprised to see your "this will not work" comment and tested it. It worked: http://jsfiddle.net/brlewis/p0Locwgp/