Can I detect element visibility using only CSS?
<p>I checked the API for some pseudo-selector such as <code>:visible</code> or <code>:hidden</code>, but was disappointed to find no such selector exists. Since jQuery has supported these selectors for a while now, I was hoping they'd be implemented. The idea is, that I'd like to show a certain element only when the element next to it is hidden, but I don't want to use JavaScript to do so. Any options?</p>