6
With the "popularization" of retinal screens, mainly on Apple devices, I have seen some people using media queries with measures like:
@media (-webkit-min-device-pixel-ratio: 2) { ... }
@media (min-resolution: 2dppx) { ... }
But I still don’t quite understand some things...
- Is there any difference between Pixel Density and Pixel Ratio?
- What’s the difference between
DPI
,DPCM
andDPPX
how should I use them?
I noticed that in Devtools itself there is an option to simulate the Device Pixel Ratio.
But I didn’t see anything change on the screen...