Difference between media any-hover and hover

Viewed 163

The documentation is identical for both entries.

I use @media (hover: hover) {...} to run a style only on desktop to hover, apparently some smartphones will run it by mistake too, would replacing with any-hover fix the problem. If yes, why ? Otherwise commits to distinguish mobile / desktop as behavior (notably function on hover).

After two days on google or here i can't find a difference, maybe a user's primary input mechanism story, but it's not very clear ...

Thanks

0 Answers
Related