W3C home > Mailing lists > Public > www-style@w3.org > October 2012

Re: [css3-mediaqueries] (min-resolution: 0dpi) is false in several browsers.

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Sun, 21 Oct 2012 14:02:59 +0200
Message-ID: <5083E473.7050106@kozea.fr>
To: Kenneth Rohde Christiansen <kenneth.christiansen@gmail.com>
CC: "www-style@w3.org list" <www-style@w3.org>
Le 21/10/2012 13:42, Kenneth Rohde Christiansen a écrit :
> +    // According to spec, (resolution) will evaluate to true if (resolution:x)
> +    // will evaluate to true for a value x other than zero or zero followed by
> +    // a valid unit identifier (i.e., other than 0, 0dpi, 0dpcm, or 0dppx.).
> +    //
> +    // This is actually always the case with the dppx, which we ignore as it is
> +    // a special-case in the sense it can be out of sync with dpi and dpcm. For
> +    // instance, both a device with 96dpi and 160dpi can have a dppx of 1.

This is not the case. 1dppx is defined as exactly 96dpi, as noted in 
css3-values:

http://dev.w3.org/csswg/css3-values/#resolution

160dpi is about 1.666dppx

-- 
Simon Sapin
Received on Sunday, 21 October 2012 12:03:30 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:01 GMT