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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sun, 21 Oct 2012 12:00:27 -0700
Message-ID: <CAAWBYDCYv9=KTdkgAFdr8K_5_jRFAENgn+_27XjN=Ldz+AjYjw@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style@w3.org
On Sun, Oct 21, 2012 at 8:22 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 10/21/12 7:32 AM, Simon Sapin wrote:
>> Apparently Firefox, Opera, and IE10 all agree that the media query
>> (min-resolution: 0dpi) is false, but (min-resolution: 0.1dpi) is true:
>
> http://dev.w3.org/csswg/css3-mediaqueries/#values says:
>
>   The <resolution> value is a positive <number> immediately followed
>   by a unit identifier (‘dpi’ or ‘dpcm’).
>
> So "0dpi" is not a valid value for <resolution>.

That sounds silly.  No other dimension has an intrinsic "non-zero"
requirement, and there's no reason for <resolution> in particular to
be different.

I highly suspect the text you quoted is just a result of the original
author being sloppy with the difference between "positive" and
"non-negative".

~TJ
Received on Sunday, 21 October 2012 19:01:14 GMT

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