Looking to create a webview with one HTML and one CSS file that displays graphics at the same size, but in their native resolution.
Currently, my webviews built for 320x480 appear sharp when scaled up (text and border-radius), but images are displayed at half resolution in the iPhone4 simulator. Is there a way to simulate the automatic selection of a graphic or its double resolution version using HTML, CSS, or possibly without JavaScript?
I am currently using a viewport declaration like this:
<meta content='initial-scale=0.5; maximum-scale=1.0; minimum-scale=0.5; user-scalable=0;' name='viewport' />
This setting zooms out so image pixels match display pixels at a 1:1 ratio, but it also scales down everything else and makes the content very small on smaller iPhone screens.
I suspect that a viewport size media query might be the solution to this issue.