i need a media query for Galaxy S6. The technical specification says, that the display has a ressolution of 2560 x 1440 pixel and the pixel-ratio is 4.
So i found a lot of queries using this data. this per example: @media screen and (device-width: 360px) and (device-height: 640px) and (-webkit-min-device-pixel-ratio : 4) and (-webkit-device-pixel-ratio : 4) and (orientation: portrait) {
But it does not work on my S6. Now i implemented some debug-messages using JavaScript (screen-width and screen-height) and this messages are showing my a screen-ressolution of 412 x 732 pixels.
Now I'm really confused. Where comes this difference from? And is this a general problem, that can occur on all other devices too?
Anyone knows something about this or has a reference with reliable informations for the most usual devices?