- From: Sander <www-style@juima.org>
- Date: Sat, 02 Sep 2006 18:36:42 +0200
- To: dolphinling <lists@dolphinling.net>
- CC: www-style@w3.org
dolphinling wrote: > Suppose HTML were extended so that <li> had to be a descendant of <ul>, but not > necessarily a child: there could be another element (or multiple elements) > between them. Is there any way to reliably select the <li>(s) in that case? ul#a>li, ul#a *:not(ol):not(ul) li { } Selects the direct li-children, and all li-descendants which aren't descendants of a descendant-list. (Pretty close to Björn's solution, but without the direct child selector between :not and li.) Sander
Received on Saturday, 2 September 2006 16:36:29 UTC