The difference between one and the other is that the inter will test only the primary pointing device (Primary Pointing device), as long as the any-Pointer will test anyone who has available and enter the media query appropriate (fine
or coarse
).
In the case of value none
, whatever use pointer
or any-pointer
, already
that you will both take on none
if there is no pointing device.
To illustrate, let’s imagine some situations:
The term coarsand mean in the sense of bad, inferior quality. In this case, it would be low precision.
Prime scorer: touch
pointer: coarse
any-pointer: coarse
Prime scorer: touch
Secondary scorer: mouse
pointer: coarse
any-pointer: fine
(because of the mouse)
Prime scorer: mouse
Secondary scorer: touch
pointer: fine
any-pointer: fine
Prime scorer: touchpad
pointer: fine
any-pointer: fine
Prime scorer: mouse
Secondary scorer: touchpad
pointer: fine
any-pointer: fine
Prime scorer: touchpad
Secondary scorer: mouse
pointer: fine
any-pointer: fine
See that both the mouse as to the touchpad are considered high precision pointing devices. Already the touch is considered coarse
(low-precision). Other devices like trackball and those buttons in the middle of the keyboard on old notebooks that move the cursor I can’t tell if they are fine
or coarse
because I don’t have them to test, but I suppose both are fine
also by moving the pointer on the screen, as does the mouse and touchpad. I don’t think the CSS will know the difference at the hardware level.
In short, it is more advantage to use any-pointer
because it will fetch the best pointing device, idependemente whether it is the main one or not. But nowadays, this feature only serves to check whether the device used is touch (and change element properties for ease of use) or use an on-screen cursor.
In short, usually a mobile device will go into coarse
,
while a desktop will enter fine
(if there is a mouse installed. Otherwise it will enter none
).
The
pointer
takes into account the main input mechanism.any-pointer
no. Vacê can read about them in the links below: inter any-Pointer I believe that’s it, I hope I helped.– Everton Freitas