Hacker News new | past | comments | ask | show | jobs | submit login

It is. In a presentation at Superconf, one of the Github designers (whose name escapes me) said that they serve some images at high resolution and resize in the HTML tags for the benefit of iPhones 4 and other high-dpi devices.



Can't this be handled with multiple stylesheets?


We do it so that when people zoom in on the site (using `⌘ + +` on a Mac) the image doesn't become pixelated and ugly.

We do it with most other images, too.


Well this way it's pixelated and ugly by default. I don't think that's better.


What browser/OS are you in? It looks pretty reasonable in Chrome on OSX; we spent a decent amount of time trying to get it as close as we could. Some browsers do weird math on resizing.


Win7, FF11 (current). You're right, it looks better in Chrome.


You can even handle it with a single stylesheet, i.e. with `min-device-pixel-ratio`.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: