3 ms·
Could you explain why? Let's say you have a clickable element and want to display a status text on hover. The status texts are loaded in some divs somewhere els
by yaix 15y ago
Could you explain why? Let's say you have a clickable element and want to display a status text on hover. The status texts are loaded in some divs somewhere else on the page. You would need JS to catch onhover and then swap the display:hidden to block or whatever. Why would anybody look to "end my life" if that was possible?
div.status > span:on(div.clickme > a:hover) { display:block; }
Why would that be bad?
- masklinn 15y ago> Why would that be bad? It's "action at a distance", it's very, very hard to understand and debug what happens.
- yaix 15y ago(1) You mean like when you do the same thing with Javascript? Why its okay then? (2) If you alter a parent element with CSS that's "action on a distance" as well. Your argument is not very convincing.