Just thinking aloud here. Could that problem be avoided by putting the tooltip element outside of the thing it is tipping, and then using a CSS selector like ".tipped-element:hover + .tooltip-element"?
I'm sure there are some other caveats that would reveal themselves later even if this one is avoidable...
I'm sure there are some other caveats that would reveal themselves later even if this one is avoidable...