DEV Community

Discussion on: What's new in browser support?

Collapse
mjsarfatti profile image
Manuele J Sarfatti

It’s not properly new but I've recently found out about:

@media (pointer: coarse) {
  // touch device (finger)
}

@media (pointer: fine) {
  // touch device (stylus)
}
Enter fullscreen mode Exit fullscreen mode
Collapse
joshuapbritz profile image
Josh Britz

🤯Mind blown. I'm so going to be using this in the future

Collapse
ben profile image
Ben Halpern Author

I can't believe I didn't know about this. There is definitely some DEV functionality written in JavaScript I'd wished I could have done via media query.

Time to look further into this and make some changes!

Collapse
mjsarfatti profile image
Manuele J Sarfatti • Edited on

I can't believe I didn't know about this

Same here. Mind blown, right??
Especially when you find out for how long this has been around...

Collapse
xelaflash profile image
xelaflash

It conforts me to know that some well established DEvs were unaware about that

Thread Thread
mjsarfatti profile image
Manuele J Sarfatti

I personally grew up when IE5 was around. Things were so bad for the frontend that even today I just assume us poor frontend devs will never get anything nice.