While there exist selectors to select items preceded (#hlinks+#hsearch
) or owned (#topbar>#hlinks
) by other items, there's no way to do the opposite.
For example there isn't something like
li:has(ul){ }
To detect list items that have other lists within them. Wouldn't that be convenient?
AFAIK, the feature is not even in the plans for CSS, so my question is: why is this so?