[webkit-dev] Double-Resolution (Retina) Images - Re: -webkit-image-set

Allan Sandfeld Jensen kde at carewolf.com
Wed Apr 25 14:17:34 PDT 2012

On Wednesday 25 April 2012, Chris Hutten-Czapski wrote:
> >> Assuming I'm understanding Kalle correctly, it seems this could
> >> already be accomplished with @media resolution?
> >> 
> >> http://www.w3.org/TR/css3-mediaqueries/#resolution
> Not to be too cute about it, but CSS dpi is _always_ 96 CSS pixels per CSS
> inch.
Well always now, historically it has been different. Anyway to continue your 
description CSS pixels have usually been 1-1 with device pixels on the 
desktop, except for printing where CSS pixels were recalculated to a number of 
device pixels.  In the printing sense there is there is nothing new in high 
DPI devices, the new devices are just the first interactive devices that end up 
using the printing tricks of large CSS pixels. This means we already have CSS 
and media query support for high DPI devices, but there are just only two 
meaningful DPIs on interactive devices: 96 or 192 (with 288 dpi reserved for 
future bling).

Best regards

More information about the webkit-dev mailing list