Is it possible to manipulate the parent element using CSS based on the presence of a specific child?
For instance, I want to style a table cell differently if the first child within it is a link.
<td>Hello</td>
<td><a href="go.html">Go here!</a></td>
<style>
td { padding: 5px; } /* Normal cell */
?? { padding: 0px; } /* Cell with link as first child */
</style>