Detect hover across input types
hover describes the primary input. any-hover asks whether at least one connected input can hover, which matters on hybrid devices.
@media (any-hover: hover) and (any-pointer: fine) {
.tooltip-trigger:hover .tooltip {
display: block;
}
}
Hover must not be the only way to reveal or operate something. Keyboard focus and touch still need equivalent behavior.